Skip to content

Component

Danger

Component APIs are an advanced feature. An understanding of how Unity works is required to utilize them.

Member Variables

Name Type Description Return
game_object GameObject The GameObject the Component composes.
name The name of the Component.

Functions

Name Return Description
get(
get(...)
name)
Obtains the value of a given Variable on a Component.
getVars()
getVars()
Returns a table mapping Var names () to their type, which is also represented as a .
set(
set(...)
name, value)
Sets the Var of the specified name to the provided value.