Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.
JoshEngebretson edited this page Jan 7, 2017 · 7 revisions

Back to Getting Started

Nodes

A node is an instance in your project. For example, 3D & 2D instances, lights and cameras are all nodes. Detailed information about nodes can be found at the Urho3D wiki.

Just as all other 3D models and/or 2D sprites in your scene, these crates and the pallet are nodes. In the Inspector, the first component seen is the “Node” component which contains the name, position/rotation/scale values and prefab options for the selected node.


Creating new nodes

In the Atomic Editor
In the Hierarchy, click on the “Create” button and click “Node”. An empty node will appear in your scene. To add a 3D mesh to this node, add the StaticModel component to this node as well.

With scripting
JavaScript:

var newNode = Atomic.game.scene.createChild("nodeName");

C#:

var newNode = Scene.CreateChild("nodeName");
Clone this wiki locally