Axiom.Core.SceneManager.CreateSceneNode C# (CSharp) Method

CreateSceneNode() public method

Creates an instance of a SceneNode.
Note that this does not add the SceneNode to the scene hierarchy. This method is for convenience, since it allows an instance to be created for which the SceneManager is responsible for allocating and releasing memory, which is convenient in complex scenes.

To include the returned SceneNode in the scene, use the AddChild method of the SceneNode which is to be it's parent.

Note that this method takes no parameters, and the node created is unnamed (it is actually given a generated name, which you can retrieve if you want). If you wish to create a node with a specific name, call the alternative method which takes a name parameter.

public CreateSceneNode ( ) : SceneNode
return SceneNode
		public virtual SceneNode CreateSceneNode()
		{
			SceneNode node = new SceneNode( this );
			this.sceneNodeList.Add( node );
			return node;
		}

Same methods

SceneManager::CreateSceneNode ( string name ) : SceneNode
SceneManager