Skip to content

Api > Animator > CompareTag()


Animator.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 Animator
local animator;

---@type string
local tag;


local val0 = animator.CompareTag(tag)