A manager which can generate unique IDs. Works in editor and runtime.
|
static void | SceneChanged (Scene newScene) |
| Is called when the scene changes. See IDInitializer.
|
|
static string | GetUniqueID () |
| Generates a new unique ID.
|
|
static void | RemoveID (string ID) |
| Removes an ID from the existing.
|
|
static void | RegisterID (string ID) |
| Registeres a given ID. Throws an error if the ID is already known.
|
|
static string | GetSceneNameOfID (string ID) |
| Extracts the scene name of the ID.
|
|
◆ Awake()
override void IDManager.Awake |
( |
| ) |
|
|
virtual |
◆ GetSceneNameOfID()
static string IDManager.GetSceneNameOfID |
( |
string |
ID | ) |
|
|
static |
- Parameters
-
ID | The ID to read its scene from. |
- Returns
- A scene name.
◆ GetUniqueID()
static string IDManager.GetUniqueID |
( |
| ) |
|
|
static |
◆ RegisterID()
static void IDManager.RegisterID |
( |
string |
ID | ) |
|
|
static |
◆ RemoveID()
static void IDManager.RemoveID |
( |
string |
ID | ) |
|
|
static |
◆ SceneChanged()
static void IDManager.SceneChanged |
( |
Scene |
newScene | ) |
|
|
static |