Class GltfAssetBase
Base component for code-less loading of glTF files
Inherited Members
Namespace: GLTFast
Assembly: solution.dll
Syntax
public abstract class GltfAssetBase : MonoBehaviour
Properties
| Name | Description |
|---|---|
| CurrentSceneId | Scene ID of the recently instantiated scene. Null if there was no scene instantiated (successfully). |
| ImportSettings | glTF import settings |
| Importer | Instance used for loading the glTF's content |
| IsDone | Indicates whether the glTF was loaded (no matter if successfully or not) |
| SceneCount | Number of scenes loaded |
| SceneNames | Array of scenes' names (entries can be null, if not specified) |
Methods
| Name | Description |
|---|---|
| ClearScenes() | Removes previously instantiated scene(s) |
| Dispose() | Releases previously allocated resources. |
| GetDefaultInstantiator(ICodeLogger) | Returns an instance of the default instantiator |
| GetMaterial(int) | Returns an imported glTF material. Note: Asset has to have finished loading before! |
| Instantiate(ICodeLogger) | Creates an instance of the main scene |
| InstantiateScene(int, GameObjectInstantiator) | Creates an instance of the scene specified by the scene index. |
| InstantiateScene(int, ICodeLogger) | Creates an instance of the scene specified by the scene index. |
| Load(string, IDownloadProvider, IDeferAgent, IMaterialGenerator, ICodeLogger) | Method for manual loading with custom IDownloadProvider and IDeferAgent. |
| OnDestroy() | Called before GameObject is destroyed |
| PostInstantiation(IInstantiator, bool) | Callback that is called after instantiation |