-
Notifications
You must be signed in to change notification settings - Fork 1
GameObject bindings
SDraw edited this page Jun 14, 2023
·
7 revisions
Refer to Unity's GameObject documentation for properties and methods description.
object GameObject(string name = "")
-
activeInHierarchy
: get, boolean -
activeSelf
: get, boolean -
isStatic
: get/set, boolean -
layer
: get/set, boolean -
tag
: get/set, string -
transform
: get, Transform
bool CompareTag(string tag)
-
object GetComponent(string name)
- Note: Only Unity's own components can be retrieved with short name (
Transform
,NavMeshAgent
and etc.), non-standart components (such asCVRLua.LuaScript
) should be retrieved with full name. - Warning: Do not try to access components that don't have Lua bindings, because such components can't be detected by garbage collector.
- Note: Only Unity's own components can be retrieved with short name (
bool SetActive(bool state)
object CreatePrimitive(string shape)
-
bool IsGameObject(object obj)
: checks if value is type ofGameObject
.
- Inherits methods and properties of Object.