Follow Vehicle State
Automatically enables or disables the GameObject based on the parent vehicle's active state.
Usage
Attach this component to child GameObjects that should only be active when the vehicle is being simulated. When the vehicle is put to sleep (disabled), the attached GameObject is also disabled, saving processing time.
Common Use Cases
- ReflectionProbes
- Effects (particles, lights)
- Audio sources
- Camera systems
- UI elements
- Any component that doesn't need to run when the vehicle is inactive
How It Works
The component listens to the parent Vehicle's onEnable and onDisable events and mirrors the state to its GameObject. This happens automatically - no configuration needed.