RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Editor AI TestsEditor AI VisualizationEditor – Assembly Spline ToolAsset BrowserAsset DeduplicatorAsset Management ToolSFX Previewer (Audio Events List)Audio Ribbon EditorAutoSaveBarriers EditorBiome ToolBuilding EditorBulk RenameCamera BookmarksCamera TransformCamera Path EditorCEF HelperCo-Simulation Signal EditorCrawl Data EditorCreate Object ToolDataBlock EditorDecal EditorDecal Spline EditorDocumentation HelperDrag Race EditorDrift Data EditorDrive Path EditorDynamic Decals Tool (Vehicle Livery Creator)Engine Audio DebugExtensions DebugExtensions EditorFFI Pointer Leak TestFile DialogFlowgraph EditorForest EditorForest ViewEditor Gizmo HelperEditor Ground Model Debug HelperEditor Headless Editor TestEditor Icon OverviewEditor ImGui C DemoEditor InspectorEditor Layout ManagerEditor Level SettingsEditor Level ValidatorEditor LoggerEditor Log HelperEditor MainEditor Main MenuEditor Main ToolbarEditor Main UpdateMap Sensor EditorMaster Spline EditorMaterial EditorMeasures Inspector HeaderMesh Editor (Base)Mesh Road EditorMesh Spline EditorMission EditorMission PlaybookMission Start Position EditorMulti Spawn Manager (Vehicle Groups)Navigation Mesh EditorEditor News MessageObject Tool (Object Select Edit Mode)Object To Spline EditorParticle EditorPerformance Profiler / Camera RecorderPhysics ReloaderPrefab Instance EditorEditor PreferencesRace / Path EditorRally EditorRaycast Test Editor ToolRenderer Components Editor ToolRender Test Editor ToolResource Checker Editor ToolRiver EditorRoad Architect EditorRoad DecorationsRoad Editor (Decal Road)Road Network ExporterRoad River Cache HandlerRoad River GUIRoad Spline EditorRoad Template EditorRoad UtilitiesScene TreeScene ViewScreenshot Creator BootstrapScript AI EditorScript AI ManagerSensor Configuration EditorSensor DebuggerShape EditorShortcut LegendSidewalk Spline EditorSites EditorSlot Traffic EditorSuspension Audio DebugTech Server ManagerTerraform ToolTerrain And Road ImporterTerrain EditorTerrain Materials EditorText EditorTool ManagerTool ShortcutsTraffic DebugTraffic ManagerTraffic Signals EditorUndo History ViewerVehicle Bridge TestVehicle Detail ViewerVehicle Editor MainEditor - VisualizationEditor Viz HelperEditor Water Object HelperEditor Windows Manager
Flowgraph Base WindowFlowgraph EventsFlowgraph ExamplesFlowgraph Execution (Task Manager)Flowgraph Garbage DebugFlowgraph HistoryFlowgraph LegendFlowgraph Main WindowFlowgraph Mission Variable HelperFlowgraph Node LibraryFlowgraph Node PreviewFlowgraph OverviewFlowgraph Project SettingsFlowgraph PropertiesFlowgraph References WindowFlowgraph Search WindowFlowgraph State View WindowFlowgraph Variables WindowFlowgraph Welcome Window

UI

Resources

BeamNG Game Engine Lua Cheat SheetGE Developer RecipesMCP Server Setup

// RLS.STUDIOS=true

Premium Mods for BeamNG.drive. Career systems, custom vehicles, and immersive gameplay experiences.

Index

HomeProjectsPatreon

Socials

DiscordPatreon (RLS)Patreon (Vehicles)

© 2026 RLS Studios. All rights reserved.

Modding since 2024

API ReferenceGE Extensionseditorflowgraph

Flowgraph Variables Window

Manages graph-local and project-global variables within the flowgraph editor.

Manages graph-local and project-global variables within the flowgraph editor.


Overview

A flowgraph manager window that displays, creates, and edits variables at both the current graph scope and the project (manager) scope. Supports drag-and-drop reordering, getter/setter node creation, type selection, and inline value editing.


Window Properties

PropertyValue
C.windowName"fg_variables"
C.windowDescription"Variables"

Key Functions

FunctionDescription
C:init()Registers window, initializes new-variable input field
C:draw()Main draw; shows current graph vars, project vars, other graph vars, and the add-variable popup
C:drawVariableCard(target, varName, global)Renders a single variable card with type icon, value preview, getter/setter buttons, and drag handle
C:drawTarget(target, name, id, global)Draws all variables for a given target with drag-and-drop reorder support
C:drawGraph(graph)Draws variables for a specific graph
C:drawRecursive(graph)Recursively draws graph variable trees
C:drawSortedGraphs(source)Draws all root graphs sorted by ID
C:getAutoTypeFromName(name)Infers variable type from naming convention

Variable Scopes

ScopeColorDescription
Current GraphOrange/warmOnly accessible within the current graph
ProjectPink/magentaAccessible from any graph in the project
Other GraphsDefaultDisplayed read-only for reference

Variable Card Features

FeatureDescription
Type iconShows the variable's data type visually
Value previewShort string representation of current value
Getter button (↓)Creates a getVariable node on the canvas; supports drag-and-drop
Setter button (↑)Creates a setVariable node on the canvas; supports drag-and-drop
Drag handleReorder variables within their scope via drag-and-drop
Expand/collapseToggle detailed editor (type selector, delete, node list)

Add Variable Popup

FieldDescription
TargetGraph-local or project-global
NameMust be unique within the target scope
TypeAuto-detect from name or explicit selection
ValueDefault value for the chosen type
Create AnotherCheckbox to keep popup open for batch creation

Usage Example

-- Variables are managed through the Variables window in the flowgraph editor.
-- Creating a variable:
--   1. Click "+" next to Current Graph or Project Variables
--   2. Enter name, select type (or leave as Auto)
--   3. Click Create

-- Using variables in the graph:
--   - Click the getter (↓) icon to place a getVariable node
--   - Click the setter (↑) icon to place a setVariable node
--   - Or drag-and-drop from the variable card onto the canvas

See Also

  • Flowgraph Editor - Parent editor module
  • Flowgraph State View - State machine visualization

Flowgraph State View Window

Displays a hierarchical view of the state machine within a flowgraph project.

Flowgraph Welcome Window

Displays the welcome/start screen for the flowgraph editor with recent files, examples, and demo projects.

On this page

OverviewWindow PropertiesKey FunctionsVariable ScopesVariable Card FeaturesAdd Variable PopupUsage ExampleSee Also