Skip to main content

Component

Notes


All components are inherited from this class. All the properties available in this class are available in all the components.

Properties


name (string)
gameObject (GameObject)
order (int)
enabled (bool)

Constructor


Empty constructor

Methods


enable()

Enables the Component which allows for the Start, Update, and other built in functions to be called.

disable()

Disables the Component which prevents the Start, Update, and other built in functions from being called.

setOrder(order : int)

Sets the order in which the Component is called. A higher order will be called first.

call(methodName : string)

Calls a method in the Java version of this Component.