Skip to main content

CapsuleCollider.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 CapsuleCollider
local capsulecollider;

---@type string
local tag;


local val0 = capsulecollider.CompareTag(tag)