RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Flowgraph Base ModuleFlowgraph Base NodeFlowgraph Base State NodeFlowgraph Node BuilderFlowgraph GraphFlowgraph Group HelperFlowgraph LinkFlowgraph ManagerNew Node TemplateFlowgraph PinFlowgraph States ManagerFlowgraph UtilsFlowgraph Variable Storage
Collection Marker (Flowgraph Node)Custom Lua Command (Flowgraph Node)Get Object Field (Flowgraph Node)Get Player Vehicle ID (Flowgraph Node)Get Point on Decalroad (Flowgraph Node)Show/Hide Object (Flowgraph Node)ID by Name (Flowgraph Node)Keep Prefab (Flowgraph Node)Particle Emitter (Flowgraph Node)Point on Decalroad (Flowgraph Node)Raceline Parking (Flowgraph Node)Raycast (Flowgraph Node)Parking Markers / Rect Marker (Flowgraph Node)Reload Collision (Flowgraph Node)Reload Nav Graph (Flowgraph Node)Remove Prefab (Flowgraph Node)Reset Prefab (Flowgraph Node)Set Object Field (Flowgraph Node)Sevensegment Display (Flowgraph Node)Single Marker (Flowgraph Node)Spawn Light / SpotLight (Flowgraph Node)Spawn Prefab (Flowgraph Node)Spawn TSStatic (Flowgraph Node)Store Statics (Flowgraph Node)Track Prefab (Flowgraph Node)

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 Extensionsflowgraphnodesscene

Show/Hide Object (Flowgraph Node)

- **Node Name:** `Show/Hide Object`

Overview

  • Node Name: Show/Hide Object
  • Category: repeat_instant
  • File: extensions/flowgraph/nodes/scene/hide.lua

Shows or hides a scene object by toggling its hidden property.

Pin Schema

Input Pins

PinTypeDescription
objIDnumberId of the object to show or hide
hideboolWhen true, hides the object; when false (or nil), shows it

Behavior

  • work() - Each frame:
    1. Validates objID is provided (sets a node error if missing).
    2. Finds the object via scenetree.findObjectById(objID).
    3. Sets obj.hidden to the hide pin value (defaults to false).
    4. Calls obj:updateInstanceRenderData() if available to refresh rendering.

Key Dependencies

  • scenetree.findObjectById(id) - Finds the target scene object
  • obj.hidden - Boolean property controlling visibility
  • obj:updateInstanceRenderData() - Forces a render data refresh

How It Works

A simple visibility toggle node. Sets the object's hidden flag and refreshes its render data. The updateInstanceRenderData() call ensures the change takes effect immediately for objects that use instanced rendering (like TSStatic). The node reports an error in the editor if objID is not connected.

Example Usage

-- Hide an object during a cutscene
-- Wire objID from an ID by Name node
-- Wire hide = true to hide, false to show
-- Useful for revealing/hiding mission props, barriers, triggers

Additional Methods

C:init()

Initializes the node, setting up pins and default properties.


See Also

  • Collection Marker (Flowgraph Node) - Related reference
  • Custom Lua Command (Flowgraph Node) - Related reference
  • Get Object Field (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Get Point on Decalroad (Flowgraph Node)

- **Node Name:** `Get Point on Decalroad`

ID by Name (Flowgraph Node)

- **Node Name:** `ID by Name`

On this page

OverviewPin SchemaInput PinsBehaviorKey DependenciesHow It WorksExample UsageAdditional MethodsC:init()See Also