Table of Contents

Class SceneNode

Namespace
Bonsai.Shaders.Rendering
Assembly
Bonsai.Shaders.Rendering.dll

Represents a node in the scene graph containing a transform and a set of mesh geometries to render.

public class SceneNode
Inheritance
SceneNode
Inherited Members

Properties

Children

Gets the collection of children of this scene node.

public IEnumerable<SceneNode> Children { get; }

Property Value

IEnumerable<SceneNode>

Name

Gets the name of the scene node.

public string Name { get; }

Property Value

string

Transform

Gets or sets the transform matrix specifying the rotation, scale, and position of the scene node.

public Matrix4 Transform { get; set; }

Property Value

Matrix4

Methods

FindNode(string)

Searches the hierarchy for a scene node with the specified name.

public SceneNode FindNode(string name)

Parameters

name string

The name of the scene node to find.

Returns

SceneNode

A SceneNode object which is either the current node, or one of its children, that matches the specified name; or null if no matching node is found.