Class CharacterConfigSetup

Use to configure basic properties of Airship character system.

Usage: add this component to any game object in your scene.

Hierarchy (view full)

Constructors

  • Use Awake instead of overloading the constructor!

    • You can specify non-optional properties using the null-assertion operator - !
    export default class ExampleBehaviour extends AirshipBehaviour {
    textComponent!: TMP_Text;
    Awake() {
    this.textComponent = this.gameObject.GetComponent<TMP_Text>();
    }
    }

    Returns CharacterConfigSetup

    Deprecated

Properties

customCharacterPrefab?: GameObject

Must include a Character component. Make sure this prefab is also assigned in the Resources/NetworkPrefabCollection.asset

gameObject: GameObject

The GameObject this behaviour is attached to.

transform: Transform

The Transform this behaviour is attached to.

Methods

  • Frame-rate independent AirshipBehaviour.FixedUpdate message for physics calculations.

    Parameters

    • dt: number

    Returns void

  • LateUpdate is called every frame, if the AirshipBehaviour is enabled.

    Parameters

    • dt: number

    Returns void

  • Destroying the attached Behaviour will result in the game or Scene receiving OnDestroy.

    Returns void

  • This function is called when the behaviour becomes disabled.

    Returns void

  • OnStart is called on the frame when a script is enabled just before any of the Update methods are called the first time.

    Returns void

  • Update is called every frame, if the AirshipBehaviour is enabled.

    Parameters

    • dt: number

    Returns void