GltfObject Class

Definition

C++
public ref class GltfObject : Microsoft::MixedReality::Toolkit::Utilities::Gltf::Schema::GltfProperty
Inheritance
GltfObject
Attributes

Constructors

Fields

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.

buffers

An array of buffers. A buffer points to binary geometry, animation, or skins.

bufferViews

An array of bufferViews. A bufferView is a view into a buffer generally representing a subset of the buffer.

cameras

An array of cameras. A camera defines a projection matrix.

Extensions

https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/schema/extension.schema.json

(Inherited from GltfProperty)
extensionsRequired

Names of glTF extensions required to properly load this asset.

extensionsUsed

Names of glTF extensions used somewhere in this asset.

Extras

https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/schema/extras.schema.json

(Inherited from GltfProperty)
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.

scene

The index of the default scene.

scenes

An array of scenes.

skins

An array of skins. A skin is defined by joints and matrices.

textures

An array of textures.

Properties

GameObjectReference

The GameObject reference for the gltf Object.

Name

The name of the gltf Object.

NodeGameObjectPairs

The Node Id and corresponding GameObject pairs.

RegisteredExtensions

The list of registered glTF extensions found for this object.

Uri

The absolute path to the glTF Object on disk.

Methods

GetAccessor(Int32)

Get an accessor from an accessor index

Extension Methods

Construct(GltfObject)

Constructs the glTF Object.

ConstructAsync(GltfObject)

Constructs the glTF Object.

Applies to

Product Versions
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0