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

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 Extensionseditor

Forest View

Provides a list view of all forest items when the forest editor is active.

Provides a list view of all forest items when the forest editor is active.


Overview

The editor_forestView extension displays a scrollable list of all ForestItemData entries in the current forest. Each item is shown as a clickable button with its name. The view opens automatically when the "Edit Forest" edit mode is activated and closes when it is deactivated.


Exported Functions

FunctionDescription
M.onEditorInitialized()Registers the forestEditorView window
M.onEditorActivated()Empty hook placeholder
M.onEditorGui()Draws the forest item list as buttons in a scrolling child region

Note: onEditorEditModeActivated and onEditorEditModeDeactivated exist in source but are commented out (not exported). populateForestItems is local-only.


Local Functions

FunctionDescription
forestItemDataTreeNode(item)Renders a single forest item as a styled button with icon and name
forestItemSortByNameFunc(a, b)Sorts items alphabetically by internalName

Item Data Structure

Each entry in forestItemsInfo:

FieldTypeDescription
keynumberForest item key from getData():findItem()
idnumberScene object ID
namestringDisplay name (internalName_id_index)
selectedbooleanSelection state

Usage Example

-- The forest view is managed automatically by edit mode hooks.
-- When the user enters "Edit Forest" mode:
--   1. Scene tree is closed
--   2. Forest view window opens
--   3. All forest items are listed alphabetically

-- Items are queried from:
local forest = scenetree.findObject("theForest")
local items = forest:getData():getItems()

See Also

  • Forest Editor - Full forest editing tools

Forest Editor

Full-featured editor for placing and manipulating forest vegetation items in BeamNG levels.

Editor Gizmo Helper

Tracks the visibility state of the editor's 3D axis gizmo (translate/rotate/scale manipulator). Ensures the gizmo selection is cleared when the gizmo stops being drawn.

On this page

OverviewExported FunctionsLocal FunctionsItem Data StructureUsage ExampleSee Also