Skip to main content

Transform.CompareTag(string tag)

Is this game object tagged with tag ?

Parameters:

NameTypeDescription
tagstringThe tag to compare.

Returns:

typeDescription
booleanIs this game object tagged with tag ?

Usage

---@type Transform
local transform;

---@type string
local tag;


local val0 = transform.CompareTag(tag)