Reference Scene Graph

Fetch a component off an entity with a failable get: `if (Mesh := Entity.GetComp

Updated
The code on this reference page is provided as-is and did not pass the latest compile check — treat the examples as a starting point and verify in your project.

Grab a component off an entity — only if it's really there.

if (Mesh := Entity.GetComponent[mesh_component]):
    Mesh.Disable()
    Sleep(2.0)
    Mesh.Enable()

Takeaway — GetComponent[] = a failable grab that binds only when the part exists.

Build your own lesson with scene_graph_get_component

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 →