Reference Scene Graph compiles

Spawn a prefab into the running scene to create an entity at runtime — drop an e

Updated Examples verified on the live UEFN compiler

Spawn a prefab to drop a fully-built entity into your live game.

spawner_device := class(creative_device):
    @editable
    EnemyMaker : npc_spawner_device = npc_spawner_device{}
    OnBegin<override>()<suspends>:void =
        EnemyMaker.Spawn()
        Print("Enemy dropped into the level")

Takeaway — Spawn() stamps a prefab into the live scene.

Build your own lesson with scene_graph_spawn_entity

Generate a personalized, step-by-step lesson plan built around this object — grounded in this exact reference and our compile-verified knowledge base.

Build a lesson →