static class Assets

If you want to manage loading assets, this is the class for you!

Static Fields and Properties

   
int CurrentTask This is the index of the current asset loading task. Note that to load one asset, multiple tasks are generated.
int CurrentTaskPriority StereoKit processes tasks in order of priority. This returns the priority of the current task, and can be used to wait until all tasks within a certain priority range have been completed.
String[] ModelFormats A list of supported model format extensions. This pairs pretty well with Platform.FilePicker when attempting to load a Model!
String[] TextureFormats A list of supported texture format extensions. This pairs pretty well with Platform.FilePicker when attempting to load a Tex!
int TotalTasks This is the total number of tasks that have been added to the loading system, including all completed and pending tasks. Note that to load one asset, multiple tasks are generated.

Static Methods

   
BlockForPriority This will block the execution of the application until all asset tasks below the priority value have completed loading. To block until all assets are loaded, pass in int.MaxValue for the priority.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!