Class AirshipScriptableObjectAbstract

A class you can derive from if you want to create objects that live independently of GameObjects. Use ScriptableObjects to centralise data in a way that can be conveniently accessed from scenes and assets within a project.

You can use the CreateAssetMenu decorator to create it from the Editor UI, or by using the Assets -> Create -> Airship -> Airship Scriptable Object Asset... menu

export default class ExampleScriptableObject extends AirshipScriptableObject {
public greetingTarget = "world";

public Awake() {
print("Hello, ", this.greetingTarget + "!");
}
}

Methods

  • Awake is called when an enabled script instance is being loaded.

    Returns void

  • Creates an instance of a scriptable object.

    To easily create a ScriptableObject instance that is bound to a .asset file via the Editor user interface, consider using CreateAssetMenu.

    Type Parameters

    Returns T