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