Class NodeBase
An object defining the hierarchy relations and the local transform of its content.
Inherited Members
Namespace: GLTFast.Schema
Assembly: glTFast.dll
Syntax
[Serializable]
public abstract class NodeBase : NamedObject
Fields
camera
Camera index
Declaration
public int camera
Field Value
Type | Description |
---|---|
int |
children
The indices of this node's children.
Declaration
public uint[] children
Field Value
Type | Description |
---|---|
uint[] |
matrix
A floating-point 4x4 transformation matrix stored in column-major order.
Declaration
public float[] matrix
Field Value
Type | Description |
---|---|
float[] |
mesh
The index of the mesh in this node.
Declaration
public int mesh
Field Value
Type | Description |
---|---|
int |
rotation
The node's unit quaternion rotation in the order (x, y, z, w), where w is the scalar.
Declaration
public float[] rotation
Field Value
Type | Description |
---|---|
float[] |
scale
The node's non-uniform scale.
Declaration
public float[] scale
Field Value
Type | Description |
---|---|
float[] |
skin
The index of the skin (in Skins referenced by this node.
Declaration
public int skin
Field Value
Type | Description |
---|---|
int |
translation
The node's translation.
Declaration
public float[] translation
Field Value
Type | Description |
---|---|
float[] |
Properties
Extensions
Node extensions
Declaration
public abstract NodeExtensions Extensions { get; }
Property Value
Type | Description |
---|---|
NodeExtensions |
Methods
JsonUtilityCleanup()
Cleans up invalid parsing artifacts created by GltfJsonUtilityParser. If you inherit a custom Node class (for use with GltfImport.LoadWithCustomSchema<T>(string,ImportSettings,System.Threading.CancellationToken) ) you can override this method to perform sanity checks on the deserialized, custom properties.
Declaration
public virtual void JsonUtilityCleanup()