Camera Inside Vehicle
Marks a camera as positioned inside a vehicle. Sets the Vehicle.CameraInsideVehicle property, which triggers UnityEvents that audio systems can use to apply interior sound effects.
Note: CameraInsideVehicle is part of NWH Common. For detailed camera system documentation, see NWH Common - Camera System.
Setup
- Attach to a camera GameObject within the vehicle hierarchy.
- Requires a
Vehiclecomponent in the parent chain. - When using
CameraChanger, it automatically detects this component when switching cameras.
Properties
isInsideVehicle
- Whether the camera is currently inside the vehicle.
- Sets
Vehicle.CameraInsideVehicle, triggeringonCameraEnterVehicleoronCameraExitVehicleevents. - Audio systems typically subscribe to these events to apply interior acoustic effects.
- Default:
true