Class VehicleReflectionProbe
Manages vehicle reflection probe settings, switching between baked and realtime modes based on vehicle activity to optimize performance.
Namespace: NWH.Common.Vehicles
Assembly: NWH.Common.dll
Syntax
[RequireComponent(typeof(ReflectionProbe))]
[DefaultExecutionOrder(19)]
public class VehicleReflectionProbe : MonoBehaviour
Remarks
Realtime reflection probes are expensive. This component switches to cheaper baked probes when the vehicle is inactive, maintaining visual quality while improving performance. The probe is automatically re-baked when the vehicle becomes inactive to capture the current environment state.
Fields
| Edit this page View SourceasleepProbeType
Probe type to use when vehicle is inactive/sleeping. Default is Baked for performance.
Declaration
public VehicleReflectionProbe.ProbeType asleepProbeType
Field Value
| Type | Description |
|---|---|
| VehicleReflectionProbe.ProbeType |
awakeProbeType
Probe type to use when vehicle is active. Default is Realtime for accurate reflections.
Declaration
public VehicleReflectionProbe.ProbeType awakeProbeType
Field Value
| Type | Description |
|---|---|
| VehicleReflectionProbe.ProbeType |
bakeOnSleep
Automatically bake the probe when vehicle becomes inactive to capture environment state.
Declaration
public bool bakeOnSleep
Field Value
| Type | Description |
|---|---|
| bool |
bakeOnStart
Bake the probe once on start for initial environment capture.
Declaration
public bool bakeOnStart
Field Value
| Type | Description |
|---|---|
| bool |