How to flag an object to only load and show in the editor

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By wwb_luda

Hi, I’d like to strip out some of the objects in a scene, as I only need them as guides to help assemble a level. Is there an easy way to do this, or do I need to write some scripts that run at compile time to strip things out?

I’d prefer to not attach scripts that deactivate them in-game, as I’m also trying to minimize footprint and load times as much as possible.

Seems like an ideal use case for “Load As Placeholder”: InstancePlaceholder — Godot Engine (stable) documentation in English

Alternatively, you could run a script as you suggested; it’d only be a minor thing to add your placeholders to a group and run:

get_tree().call_group("placeholder", "queue_free")

spaceyjase | 2023-04-27 12:26