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
Mission Editor - Additional AttributesMission Editor - Career SetupMission Editor - ConditionsMission Editor - Dev NotesMission Editor – GeneralMission Editor – Generic Type DataMission Editor – IssuesMission Editor – LayersMission Editor – ObjectivesMission Editor – Playbook UtilsMission Editor – PrefabsMission Editor – Preview CheckerMission Editor – Progress MultiMission Editor – Progress SetupMission Editor – Progress SingleMission Editor – Setup ModulesMission Editor – Start Trigger

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 ExtensionseditormissionEditor

Mission Editor – Prefabs

Editor sub-module for managing a mission's **prefab file list**. Prefabs are `.prefab.json` files spawned into the scene when the mission starts.

Editor sub-module for managing a mission's prefab file list. Prefabs are .prefab.json files spawned into the scene when the mission starts.


Overview

Manages mission.prefabs, an ordered array of file paths to prefab files. Provides UI for adding, removing, editing paths, browsing via file dialog, spawning prefabs into the scene, and toggling collision reload.


Class Methods

MethodSignatureDescription
C:init(missionEditor)Stores editor reference, initialises state.
C:setMission(mission)Caches mission, creates ImGui input buffers per prefab, sets collision reload flag.
C:draw()Renders the prefab list with per-entry controls.

UI Controls Per Prefab

ControlDescription
Delete buttonRemoves the prefab entry
Text inputEdit the file path directly
... buttonOpens file dialog (.prefab.json or .prefab)
Check/Error iconGreen check if file exists, red error if not
Spawn buttonSpawns the prefab at origin into MissionGroup and selects it

Additional Options

OptionDescription
Add buttonAppends a new empty prefab entry
Requires collision reloadCheckbox; sets mission.prefabsRequireCollisionReload (only shown when prefabs exist)

Usage Example

local prefabsTab = require('extensions/editor/missionEditor/prefabs')(missionEditorRef)
prefabsTab:setMission(currentMission)
prefabsTab:draw()

-- mission.prefabs → { "/levels/east_coast/missions/race001/cones.prefab.json" }

See Also

  • Mission Editor - Additional Attributes - Related reference
  • Mission Editor - Career Setup - Related reference
  • Mission Editor - Conditions - Related reference
  • World Editor Guide - Guide

Mission Editor – Playbook Utils

Editor sub-module that provides **quick-add buttons** for inserting mission attempt instructions into the Mission Playbook from within the Mission Editor.

Mission Editor – Preview Checker

Editor sub-module that **validates and displays** a mission's preview image and thumbnail. Checks for correct file existence, dimensions, and file size.

On this page

OverviewClass MethodsUI Controls Per PrefabAdditional OptionsUsage ExampleSee Also