Skip to main content

GameObject.FindGameObjectsWithTag(string tag)

Returns an array of active GameObjects tagged tag. Returns empty array if no GameObject was found.

Parameters:

NameTypeDescription
tagstringThe name of the tag to search GameObjects for.

Returns:

typeDescription
GameObject[]GameObjects

Usage

---@type string
local tag;


local val0 = GameObject:FindGameObjectsWithTag(tag)