Class GltfAsset
Base component for code-less loading of glTF files
Inherited Members
Namespace: GLTFast
Assembly: solution.dll
Syntax
public class GltfAsset : GltfAssetBase
Properties
Name | Description |
---|---|
FullUrl | Final URL, considering all options (like streamingAsset) |
InstantiationSettings | Instantiation settings |
LoadOnStartup | Automatically load at start |
PlayAutomatically | If true, the first animation clip starts playing right after instantiation. |
SceneId | Scene to load (-1 loads glTFs default scene) |
SceneInstance | Latest scene's instance. |
StreamingAsset | If true, url is treated as relative StreamingAssets path |
Url | URL to load the glTF from Loading local file paths works by prefixing them with "file://" |
Methods
Name | Description |
---|---|
ClearScenes() | Removes previously instantiated scene(s) |
GetDefaultInstantiator(ICodeLogger) | Returns an instance of the default instantiator |
Load(string, IDownloadProvider, IDeferAgent, IMaterialGenerator, ICodeLogger) | Method for manual loading with custom IDownloadProvider and IDeferAgent. |
PostInstantiation(IInstantiator, bool) | Callback that is called after instantiation |
Start() | Called at initialization phase |