Class GltfEntityAsset
Loads a glTF from a MonoBehaviour but instantiates Entities. Intermediate solution and drop-in replacement for GltfAsset TODO: To be replaced with a pure ECS concept
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: GLTFast
Assembly: solution.dll
Syntax
[BurstCompile]
public class GltfEntityAsset : GltfAssetBase
Properties
Name | Description |
---|---|
FullUrl | |
InstantiationSettings | Instantiation settings |
LoadOnStartup | Automatically load at start |
SceneId | Scene to load (-1 loads glTFs default scene) |
StreamingAsset | If true, url is treated as relative StreamingAssets path |
Url |
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() |