Class RuntimeContentManager
Class that manages resources loaded from content archives.
Namespace: Unity.Entities.Content
Assembly: Unity.Entities.dll
Syntax
[GenerateTestsForBurstCompatibility]
[BurstCompile]
public static class RuntimeContentManager
Properties
Name | Description |
---|---|
Relative |
The relative path of the catalog. |
Methods
Name | Description |
---|---|
Cleanup(out int) | Cleanup internal resources. |
Default |
Functor that transforms an archive id into a relative path. This path should be relative to the streaming assets path. |
Default |
Functor that transforms a file id into the internal mounted path. |
Get |
Get the entire list of object ids. |
Get |
Get the cached object status value. This method is thread safe and can be burst compiled. The cached value is only update once per frame. |
Get |
For an object that is loaded, this will return the loaded value. |
Get |
The scene file. This is needed to integrate when the scene is loaded with the auto |
Get |
Get the entire list of object ids. |
Get |
Gets the current status of an active scene. |
Get |
The loaded scene value. |
Initialize() | Initialize the internal data structures for handling content archives. |
Load |
Loads catalog data from a local path. |
Load |
Thread safe method to initiate an object load. The load will start during the main thread update. |
Load |
Load multiple objects. |
Load |
Loads a GameObject based scene. |
Process |
Process queued load and release requests. |
Release |
Thread safe method to release an object. The release will happen during the main thread update. |
Release |
Release multiple objects. |
Unload |
Release a scene. If the reference count goes to zero, the scene will be unloaded. |
Wait |
Blocks on the main thread until the load operation completes. This function can be slow and so should be used carefully to avoid frame rate stuttering. |