API ReferenceGE Extensionsflowgraphnodesscenecamera
Get Camera Mode (Flowgraph Node)
- **Node Name:** `Get Camera Mode`
Overview
- Node Name:
Get Camera Mode - Category:
repeat_instant - File:
extensions/flowgraph/nodes/scene/camera/getCameraMode.lua
Gets the name of the currently active camera mode (e.g., "orbit", "driver", "free").
Pin Schema
Output Pins
| Pin | Type | Description |
|---|---|---|
mode | string | The current camera mode name |
Behavior
work()- Each frame, queriescore_camera.getActiveCamName(0)and outputs the result.
Key Dependencies
core_camera.getActiveCamName(playerIndex)- Returns the string name of the active camera for the given player
How It Works
A minimal provider node that continuously outputs the current camera mode string. Useful for branching logic based on what camera the player is using.
Example Usage
-- Read the camera mode and branch on it
-- e.g., check if mode == "orbit" to trigger a cinematic sequence
-- Pair with Set Camera Mode to implement camera mode togglingSee Also
- Camera Transform (Flowgraph Node) - Related reference
- Camera Look at Position (Flowgraph Node) - Related reference
- Camera Auto Circle (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide