GltfUtility.ImportGltfObjectFromPathAsync(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.