Abstract
Protected
constructor!
export default class ExampleBehaviour extends AirshipBehaviour {
textComponent!: TMP_Text;
Awake() {
this.textComponent = this.gameObject.GetComponent<TMP_Text>();
}
}
Readonly
gameThe GameObject
this behaviour is attached to.
Readonly
transformThe Transform
this behaviour is attached to.
The enabled state of this component
Protected
Optional
AwakeProtected
Optional
FixedStatic
GetProtected
Optional
LateProtected
Optional
OnProtected
Optional
OnProtected
Optional
OnProtected
Optional
OnProtected
Optional
OnProtected
Optional
OnProtected
Optional
OnProtected
Optional
OnProtected
Optional
OnProtected
Optional
OnProtected
Optional
OnProtected
Optional
OnProtected
Optional
OnProtected
Optional
OnProtected
Optional
OnProtected
Optional
StartProtected
Optional
Update
A TypeScript parallel to a component Singleton for Airship - no boilerplate required
default
.Example declaration:
The singleton can then be retrieved via