Can store up to 8 active scenes and allows for duplicates. Each write increases Version which can be used to generate unique scene objects ids for when a scene is supposed to be reloaded.
More...
Inherits INetworkStruct, and IEquatable< NetworkSceneInfo >.
|
const int | MaxScenes = 8 |
| Max number of scenes that can be stored.
|
|
const int | SIZE = 52 |
| The size of the struct in bytes.
|
|
const int | WORD_COUNT = 13 |
| The size of the struct in words.
|
|
Can store up to 8 active scenes and allows for duplicates. Each write increases Version which can be used to generate unique scene objects ids for when a scene is supposed to be reloaded.
◆ AddSceneRef()
int AddSceneRef |
( |
SceneRef |
sceneRef, |
|
|
LoadSceneMode |
loadSceneMode = LoadSceneMode::Single , |
|
|
LocalPhysicsMode |
localPhysicsMode = LocalPhysicsMode::None , |
|
|
bool |
activeOnLoad = false |
|
) |
| |
Adds a scene to the list.
- Parameters
-
sceneRef | Scene to add |
loadSceneMode | Load scene mode |
localPhysicsMode | Local physics mode |
activeOnLoad | Signals if the scene should be active on load |
- Returns
- Returns the index of the scene or -1 if the scene could not be added
◆ Equals() [1/2]
Compares two NetworkSceneInfo for equality.
- Parameters
-
other | The other NetworkSceneInfo |
- Returns
- Returns true if the two NetworkSceneInfo are equal
◆ Equals() [2/2]
override bool Equals |
( |
object |
obj | ) |
|
Compares two NetworkSceneInfo for equality.
- Parameters
-
obj | The other NetworkSceneInfo |
- Returns
- Returns true if the two NetworkSceneInfo are equal
◆ GetHashCode()
override int GetHashCode |
( |
| ) |
|
Get the hash code of the NetworkSceneInfo
- Returns
- Hast code of the NetworkSceneInfo
◆ IndexOf()
Gets the index of the given scene.
- Parameters
-
sceneRef | SceneRef to look for |
sceneParams | Scene parameters to look for |
- Returns
- Returns the index of the scene or -1 if not found
◆ operator NetworkSceneInfo()
Implicit conversion to NetworkSceneInfo
- Parameters
-
sceneRef | SceneRef to convert |
- Returns
- Returns a NetworkSceneInfo instance
◆ RemoveSceneRef()
bool RemoveSceneRef |
( |
SceneRef |
sceneRef | ) |
|
Removes a scene from the list.
- Parameters
-
- Returns
- Returns true if the scene was removed