NWH Common
Search Results for

    Show / Hide Table of Contents

    Class VehicleReflectionProbe

    Manages vehicle reflection probe settings, switching between baked and realtime modes based on vehicle activity to optimize performance.

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    VehicleReflectionProbe
    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 Source

    asleepProbeType

    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
    | Edit this page View Source

    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
    | Edit this page View Source

    bakeOnSleep

    Automatically bake the probe when vehicle becomes inactive to capture environment state.

    Declaration
    public bool bakeOnSleep
    Field Value
    Type Description
    bool
    | Edit this page View Source

    bakeOnStart

    Bake the probe once on start for initial environment capture.

    Declaration
    public bool bakeOnStart
    Field Value
    Type Description
    bool
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics