Class GltfImportBase<TRoot>
Loads a glTF's content, converts it to Unity resources and is able to feed it to an IInstantiator for instantiation.
Inherited Members
Namespace: GLTFast
Assembly: solution.dll
Syntax
public abstract class GltfImportBase<TRoot> : GltfImportBase, IDisposable, IGltfReadable<TRoot>, IGltfReadable where TRoot : RootBase
Type Parameters
Name | Description |
---|---|
TRoot | Root schema class to use for de-serialization. |
Constructors
Name | Description |
---|---|
GltfImportBase(IDownloadProvider, IDeferAgent, IMaterialGenerator, ICodeLogger) | Constructs a GltfImport instance with injectable customization objects. |
Properties
Name | Description |
---|---|
Root | Main glTF data structure |
Methods
Name | Description |
---|---|
GetSourceRoot() | Get source root (de-serialized glTF JSON). This is intended for read-only access. Changes might corrupt data and break subsequent scene instantiation. |