NWH Aerodynamics
Search Results for

    Show / Hide Table of Contents

    Class AircraftMonoBehaviour

    Base class for aircraft component MonoBehaviours providing automatic reference caching to the parent AircraftController and AircraftInputManager.

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    AircraftMonoBehaviour
    ControlSurface
    AircraftLightsManager
    SmokeSystem
    LandingGear
    AircraftEngineBase
    Namespace: NWH.Aerodynamics.AircraftController
    Assembly: NWH.Aerodynamics.dll
    Syntax
    public abstract class AircraftMonoBehaviour : MonoBehaviour
    Remarks

    Derive from this class when creating custom aircraft components that need access to the aircraft's main controller or input system. References are automatically resolved on Awake by searching up the parent hierarchy, eliminating the need for manual assignment.

    Fields

    | Edit this page View Source

    _aircraftController

    Cached reference to the parent AircraftController. Automatically resolved on Awake.

    Declaration
    [NonSerialized]
    protected AircraftController _aircraftController
    Field Value
    Type Description
    AircraftController
    | Edit this page View Source

    _inputManager

    Cached reference to the parent AircraftInputManager. Automatically resolved on Awake.

    Declaration
    [NonSerialized]
    protected AircraftInputManager _inputManager
    Field Value
    Type Description
    AircraftInputManager

    Methods

    | Edit this page View Source

    Awake()

    Declaration
    public virtual void Awake()
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics