Skip to main content

GameObject.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 GameObject
local gameobject;

---@type string
local tag;


local val0 = gameobject.CompareTag(tag)