Class ImportAddonInstance
Base class for customizing load- and instantiation behavior. Injects itself into GltfImport and IInstantiator.
Implements
Inherited Members
Namespace: GLTFast.Addons
Assembly: glTFast.dll
Syntax
public abstract class ImportAddonInstance : IDisposable
Methods
Dispose()
Releases previously allocated resources.
Declaration
public abstract void Dispose()
Inject(GltfImportBase)
Injects this import instance into a GltfImport
Declaration
public abstract void Inject(GltfImportBase gltfImport)
Parameters
Type | Name | Description |
---|---|---|
GltfImportBase | gltfImport | GltfImport to be injected into. |
Inject(IInstantiator)
Injects this import instance into an instantiator.
Declaration
public abstract void Inject(IInstantiator instantiator)
Parameters
Type | Name | Description |
---|---|---|
IInstantiator | instantiator | Instantiator to be injected into. |
SupportsGltfExtension(string)
Obtains whether a certain glTF extension is supported by this ImportAddonInstance.
Declaration
public abstract bool SupportsGltfExtension(string extensionName)
Parameters
Type | Name | Description |
---|---|---|
string | extensionName | Name of the glTF extension |
Returns
Type | Description |
---|---|
bool | True if this ImportInstance offers support for the given glTF extension. False otherwise. |