NWH Vehicle Physics 2
Search Results for

    Show / Hide Table of Contents

    Camera Changer

    CameraChanger inspector.

    Cycles through cameras, ensuring only one is active at a time. Automatically manages AudioListeners and disables cameras for multiplayer remote instances.

    Note: CameraChanger is part of NWH Common. For detailed camera system documentation, setup examples, and integration with input providers, see NWH Common - Camera System.

    Setup

    • Attach to empty Cameras object as child of vehicle root.
    • Enable Auto Find Cameras or manually assign to Cameras list. Auto-find requires cameras as children of the CameraChanger object.
    • Default switch key: C (see Input Setup).

    Example CameraChanger setup.

    Public API

    Properties:

    • cameras - List of camera GameObjects to cycle through
    • currentCameraIndex - Index of currently active camera
    • autoFindCameras - If true, automatically finds child cameras on Awake

    Methods:

    • NextCamera() - Activates next camera in list (cycles to first)
    • PreviousCamera() - Activates previous camera in list (cycles to last)

    Notes

    • Automatically enables/disables AudioListeners on cameras
    • Works with CameraInsideVehicle component to track interior camera state
    • Cameras disabled for multiplayer remote vehicle instances
    • Requires Vehicle component in parent hierarchy
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics