NWH Vehicle Physics 2
Search Results for

    Show / Hide Table of Contents

    Class MetricsModuleWrapper

    MonoBehaviour wrapper for the Metrics module. Goes on the GameObject that has the VehicleController; handles MonoBehaviour lifecycle and serialization while the contained module does the tracking.

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    ModuleWrapper
    MetricsModuleWrapper
    Namespace: NWH.VehiclePhysics2.Modules.Metrics
    Assembly: NWH.VehiclePhysics2.dll
    Syntax
    [Serializable]
    [DisallowMultipleComponent]
    public class MetricsModuleWrapper : ModuleWrapper

    Fields

    module

    The MetricsModule instance managed by this wrapper. Tracked values live on its public Metric fields.

    Declaration
    public MetricsModule module
    Field Value
    Type Description
    MetricsModule

    Methods

    GetModule()

    Returns the contained MetricsModule as a VehicleComponent.

    Declaration
    public override VehicleComponent GetModule()
    Returns
    Type Description
    VehicleComponent

    The MetricsModule instance cast to VehicleComponent.

    Overrides
    ModuleWrapper.GetModule()

    SetModule(VehicleComponent)

    Sets the contained module from a VehicleComponent reference.

    Declaration
    public override void SetModule(VehicleComponent module)
    Parameters
    Type Name Description
    VehicleComponent module

    The VehicleComponent to set, must be a MetricsModule instance.

    Overrides
    ModuleWrapper.SetModule(VehicleComponent)
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics