Photon Fusion
2.0.8
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 >.
Public Member Functions | |
| int | AddSceneRef (SceneRef sceneRef, LoadSceneMode loadSceneMode=LoadSceneMode.Single, LocalPhysicsMode localPhysicsMode=LocalPhysicsMode.None, bool activeOnLoad=false) |
| Adds a scene to the list More... | |
| bool | Equals (NetworkSceneInfo other) |
| Compares two NetworkSceneInfo for equality More... | |
| override bool | Equals (object obj) |
| Compares two NetworkSceneInfo for equality More... | |
| override int | GetHashCode () |
| Get the hash code of the NetworkSceneInfo More... | |
| int | IndexOf ((SceneRef SceneRef, NetworkLoadSceneParameters SceneParams) scene) |
| int | IndexOf (SceneRef sceneRef, NetworkLoadSceneParameters sceneParams) |
| Gets the index of the given scene More... | |
| bool | RemoveSceneRef (SceneRef sceneRef) |
| Removes a scene from the list More... | |
| override string | ToString () |
| String representation of the NetworkSceneInfo More... | |
Static Public Member Functions | |
| static implicit | operator NetworkSceneInfo (SceneRef sceneRef) |
| Implicit conversion to NetworkSceneInfo More... | |
Static Public Attributes | |
| const int | MaxScenes = 8 |
| Max number of scenes that can be stored More... | |
| const int | SIZE = 52 |
| The size of the struct in bytes More... | |
| const int | WORD_COUNT = 13 |
| The size of the struct in words More... | |
Properties | |
| int | SceneCount [get] |
| Total Scene Count More... | |
| FixedArray< NetworkLoadSceneParameters > | SceneParams [get] |
| The scenes load parameters list More... | |
| FixedArray< SceneRef > | Scenes [get] |
| The scenes list More... | |
| int | Version [get] |
| Version number More... | |
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.
| int AddSceneRef | ( | SceneRef | sceneRef, |
| LoadSceneMode | loadSceneMode = LoadSceneMode.Single, |
||
| LocalPhysicsMode | localPhysicsMode = LocalPhysicsMode.None, |
||
| bool | activeOnLoad = false |
||
| ) |
Adds a scene to the list
| sceneRef | Scene to add |
| loadSceneMode | Load scene mode |
| localPhysicsMode | Local physics mode |
| activeOnLoad | Signals if the scene should be active on load |
| bool Equals | ( | NetworkSceneInfo | other | ) |
Compares two NetworkSceneInfo for equality
| other | The other NetworkSceneInfo |
| override bool Equals | ( | object | obj | ) |
Compares two NetworkSceneInfo for equality
| obj | The other NetworkSceneInfo |
| override int GetHashCode | ( | ) |
Get the hash code of the NetworkSceneInfo
| int IndexOf | ( | SceneRef | sceneRef, |
| NetworkLoadSceneParameters | sceneParams | ||
| ) |
Gets the index of the given scene
| sceneRef | SceneRef to look for |
| sceneParams | Scene parameters to look for |
|
static |
Implicit conversion to NetworkSceneInfo
| sceneRef | SceneRef to convert |
| bool RemoveSceneRef | ( | SceneRef | sceneRef | ) |
Removes a scene from the list
| sceneRef | Scene to remove |
| override string ToString | ( | ) |
String representation of the NetworkSceneInfo
|
static |
Max number of scenes that can be stored
|
static |
The size of the struct in bytes
|
static |
The size of the struct in words
|
get |
Total Scene Count
|
get |
The scenes load parameters list
|
get |
The scenes list
|
get |
Version number