GltfAsset
class in GLTFast · glTFast · inherits from MonoBehaviour
8 of 14 of Unity's members
In Tassix
Loads a glTF file and instantiates its main scene as children of this GameObject, on Start when LoadOnStartup is set. Relative URLs resolve against the scene's asset folder (Tassix) instead of StreamingAssets.
GltfAssets loading the same file share one import (reference counted), so their meshes and materials are the same objects and draw instanced; a GltfImport created by a script stays its own.
Properties 6
string FullUrl { get; }The URL with relative paths resolved.
GltfImport? Importer { get; }bool IsDone { get; }bool LoadOnStartup { get; set; }bool StreamingAsset { get; set; }string Url { get; set; }Methods 2
void ClearScenes()Destroys the instantiated children and the imported assets.
virtual Task<bool> Load(string gltfUrl, IDownloadProvider? downloadProvider = null, IDeferAgent? deferAgent = null, IMaterialGenerator? materialGenerator = null, ICodeLogger? logger = null)Not in Tassix yet 6
GetDefaultInstantiator InstantiationSettings PlayAutomatically PostInstantiation SceneId SceneInstance