-
Notifications
You must be signed in to change notification settings - Fork 1
Component bindings
SDraw edited this page Jun 3, 2023
·
4 revisions
Refer to Unity's Component documentation for properties and methods description.
-
gameObject
: get, GameObject -
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 IsComponent()
: checks if value is type ofComponent
.
- Inherits properties and methods from Object.