Airship Components

Most game logic is run through AirshipBehaviours. It is our equivalent to Unity's MonoBehaviourarrow-up-right.

AirshipBehaviours offer useful lifecycle methods. They are attached to Game Objectsarrow-up-right.

export default class ExampleAirshipBehaviour extends AirshipBehaviour {
	public greeting = "Hello, World!";

	public Start(): void {
		print(this.greeting);
	}
}

After the file is compiled, it can be added to a Game Object through the Add Airship Component menu

You should see your component added after selecting it:

When you run your game, this will print "Hello, World!"

Last updated