Class FusNode
Nodes are the building blocks for scene graphs within .fus files.
Inheritance
System.Object
FusNode
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fusee.Serialization.V1
Assembly: Fusee.Serialization.dll
Syntax
public class FusNode : INode
Fields
Children
This node's children. Possibly empty.
Declaration
public List<FusNode> Children
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<FusNode> |
Components
Indices into the FusScene's list of components that make up this node.
Declaration
public List<int> Components
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<System.Int32> |
Name
The name of the node. Often used to identify individual parts of a scene.
Declaration
public string Name
Field Value
Type | Description |
---|---|
System.String |
Scene
A scene node.
Declaration
public FusScene Scene
Field Value
Type | Description |
---|---|
FusScene |
Properties
EnumChildren
Returns all children of this node
Declaration
public IEnumerable<INode> EnumChildren { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<INode> |
EnumComponents
Returns all components of this node
Declaration
public IEnumerable<IComponent> EnumComponents { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IComponent> |
Methods
AddComponent(FusComponent)
Adds a component to this node's list of components. Internally the component is stored in this node's Scene instance and referenced in the node.
Declaration
public void AddComponent(FusComponent component)
Parameters
Type | Name | Description |
---|---|---|
FusComponent | component | The component to store in this node's component list. |
AddNode(FusNode)
Adds a node as a a child node to
Declaration
public void AddNode(FusNode node)
Parameters
Type | Name | Description |
---|---|---|
FusNode | node |