Skip to main content

GameObject.Find(string name)

Finds a GameObject by name and returns it.

Parameters:

NameTypeDescription
namestringname of gameObject to find

Returns:

typeDescription
GameObjectgameObject

Usage

---@type string
local name;


local val0 = GameObject:Find(name)