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.
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.