NWH Common
Search Results for

    Show / Hide Table of Contents

    Class FollowVehicleState

    Automatically enables/disables a GameObject based on parent vehicle's active state. Useful for optimizing performance by disabling effects, audio, or visuals when a vehicle is inactive.

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    FollowVehicleState
    Namespace: NWH.Common.Vehicles
    Assembly: NWH.Common.dll
    Syntax
    [DefaultExecutionOrder(21)]
    public class FollowVehicleState : MonoBehaviour
    Remarks

    Attach this component to child objects that should only be active when the vehicle is being simulated. When the vehicle is put to sleep (disabled), attached objects are also disabled, saving processing time for effects that wouldn't be visible anyway.

    • Edit this page
    • View Source
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics