Api > GameObject > FindGameObjectsWithTag()
GameObject.FindGameObjectsWithTag(string tag)⚓︎
Returns an array of active GameObjects tagged tag. Returns empty array if no GameObject was found.
Parameters:⚓︎
Name | Type | Description |
---|---|---|
tag | string | The name of the tag to search GameObjects for. |
Returns:⚓︎
type | Description |
---|---|
GameObject[] | GameObjects |
Usage⚓︎
---@type string
local tag;
local val0 = GameObject:FindGameObjectsWithTag(tag)