IMixedRealitySceneSystem.UnloadContent Method
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.
UnloadContent(IEnumerable<String>) |
Async method to unload scenes by name. If a scene is not loaded, it will be ignored. If a scene operation is in progress, no action will be taken. |
UnloadContent(String) |
Async method to unload a single scene by name. If the scene is not loaded, no action will be taken. If a scene operation is in progress, no action will be taken. |
Async method to unload scenes by name. If a scene is not loaded, it will be ignored. If a scene operation is in progress, no action will be taken.
public:
System::Threading::Tasks::Task ^ UnloadContent(System::Collections::Generic::IEnumerable<System::String ^> ^ scenesToUnload);
public System.Threading.Tasks.Task UnloadContent (System.Collections.Generic.IEnumerable<string> scenesToUnload);
abstract member UnloadContent : seq<string> -> System.Threading.Tasks.Task
Public Function UnloadContent (scenesToUnload As IEnumerable(Of String)) As Task
Parameters
- scenesToUnload
- IEnumerable<String>
Returns
Task
Applies to
MRTK2 Unity 2018 2.7.0 a ďalšie verzie
Produkt | Verzie |
---|---|
MRTK2 Unity 2018 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0 |
MRTK2 Unity 2019 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
MRTK2 Unity 2020 | 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
Async method to unload a single scene by name. If the scene is not loaded, no action will be taken. If a scene operation is in progress, no action will be taken.
public:
System::Threading::Tasks::Task ^ UnloadContent(System::String ^ sceneToUnload);
public System.Threading.Tasks.Task UnloadContent (string sceneToUnload);
abstract member UnloadContent : string -> System.Threading.Tasks.Task
Public Function UnloadContent (sceneToUnload As String) As Task
Parameters
- sceneToUnload
- String
Returns
Task
Applies to
MRTK2 Unity 2018 2.7.0 a ďalšie verzie
Produkt | Verzie |
---|---|
MRTK2 Unity 2018 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0 |
MRTK2 Unity 2019 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
MRTK2 Unity 2020 | 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |