Class RootBase
The root object for a glTF asset.
Inherited Members
Namespace: GLTFast.Schema
Assembly: solution.dll
Syntax
[Serializable]
public abstract class RootBase
Fields
Name | Description |
---|---|
extensionsRequired | Names of glTF extensions required to properly load this asset. |
extensionsUsed | Names of glTF extensions used somewhere in this asset. |
scene | The index of the default scene. |
Properties
Name | Description |
---|---|
Accessors | An array of accessors. An accessor is a typed view into a bufferView. |
Animations | An array of keyframe animations. |
Asset | Metadata about the glTF asset. |
BufferViews | An array of bufferViews. A bufferView is a view into a buffer generally representing a subset of the buffer. |
Buffers | An array of buffers. A buffer points to binary geometry, animation, or skins. |
Cameras | An array of cameras. A camera defines a projection matrix. |
Extensions | glTF root extensions |
HasAnimation | |
Images | An array of images. An image defines data used to create a texture. |
Materials | An array of materials. A material defines the appearance of a primitive. |
Meshes | An array of meshes. A mesh is a set of primitives to be rendered. |
Nodes | An array of nodes. |
Samplers | An array of samplers. A sampler contains properties for texture filtering and wrapping modes. |
Scenes | An array of scenes. |
Skins | An array of skins. A skin is defined by joints and matrices. |
Textures | An array of textures. |
Methods
Name | Description |
---|---|
GltfSerialize(StreamWriter) | Serialization to JSON |
IsAccessorInterleaved(int) | Looks up if a certain accessor points to interleaved data. |
JsonUtilityCleanup() | Cleans up invalid parsing artifacts created by GltfJsonUtilityParser. If you inherit a custom Root 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. |