CompareTag
7/14/25Less than 1 minute
Rigidbody.CompareTag(string tag)
Is this game object tagged with tag ?
Parameters:
| Name | Type | Description | 
|---|---|---|
| tag | string | The tag to compare. | 
Returns:
| type | Description | 
|---|---|
| boolean | Is this game object tagged with tag ? | 
Usage
---@type Rigidbody
local rigidbody;
---@type string
local tag;
local val0 = rigidbody.CompareTag(tag)
