GltfUtility.ImportGltfObjectFromPathAsync(String) Method

Definition

Imports a glTF object from the provided uri.

public:
 static System::Threading::Tasks::Task<Microsoft::MixedReality::Toolkit::Utilities::Gltf::Schema::GltfObject ^> ^ ImportGltfObjectFromPathAsync(System::String ^ uri);
public static System.Threading.Tasks.Task<Microsoft.MixedReality.Toolkit.Utilities.Gltf.Schema.GltfObject> ImportGltfObjectFromPathAsync (string uri);
static member ImportGltfObjectFromPathAsync : string -> System.Threading.Tasks.Task<Microsoft.MixedReality.Toolkit.Utilities.Gltf.Schema.GltfObject>
Public Shared Function ImportGltfObjectFromPathAsync (uri As String) As Task(Of GltfObject)

Parameters

uri
String

the path to the file to load

Returns

Task<GltfObject>

New GltfObject imported from uri.

Remarks

Must be called from the main thread. If the Application.isPlaying is false, then this method will run synchronously.

Applies to