Class SceneManager
Namespace: Unity.Tiny.Scenes
Syntax
public static class SceneManager
Methods
Create(EntityManager, NativeArray<Entity>, Guid)
Converts the given set of entities to be part of the same scene.
Declaration
public static Scene Create(EntityManager entityManager, NativeArray<Entity> entities, Guid guid)
Parameters
Type | Name | Description |
---|---|---|
EntityManager | entityManager | The entity manager to operate on. |
NativeArray<Entity> | entities | The set of entities to convert. |
Guid | guid | The unique identifier of the scene. |
Returns
Type | Description |
---|---|
Scene | A scene view of entities. |
Create(Guid)
Declaration
public static Scene Create(Guid guid)
Parameters
Type | Name | Description |
---|---|---|
Guid | guid |
Returns
Type | Description |
---|---|
Scene |
Destroy(EntityManager, Scene)
Declaration
public static void Destroy(EntityManager entityManager, Scene scene)
Parameters
Type | Name | Description |
---|---|---|
EntityManager | entityManager | |
Scene | scene |