Photon Fusion
2.1.1
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.
Public Member Functions | |
| int | AddSceneRef (SceneRef sceneRef, LoadSceneMode loadSceneMode=LoadSceneMode.Single, LocalPhysicsMode localPhysicsMode=LocalPhysicsMode.None, bool activeOnLoad=false) |
| Adds a scene to the list. | |
| readonly bool | Equals (NetworkSceneInfo other) |
| Compares two NetworkSceneInfo for equality. | |
| override readonly bool | Equals (object obj) |
| Compares two NetworkSceneInfo for equality. | |
| override readonly int | GetHashCode () |
| Get the hash code of the NetworkSceneInfo. | |
| readonly int | IndexOf ((SceneRef SceneRef, NetworkLoadSceneParameters SceneParams) scene) |
| readonly int | IndexOf (SceneRef sceneRef, NetworkLoadSceneParameters sceneParams) |
| Gets the index of the given scene. | |
| bool | RemoveSceneRef (SceneRef sceneRef) |
| Removes a scene from the list. | |
| override readonly string | ToString () |
| String representation of the NetworkSceneInfo. | |
Static Public Member Functions | |
| static implicit | operator NetworkSceneInfo (SceneRef sceneRef) |
| Implicit conversion to NetworkSceneInfo. | |
Static Public Attributes | |
| const int | MaxScenes = 8 |
| Max number of scenes that can be stored. | |
Properties | |
| int | SceneCount [get] |
| Total Scene Count. | |
| readonly ReadOnlySpan< NetworkLoadSceneParameters > | SceneParams [get] |
| The scenes load parameters list. | |
| readonly ReadOnlySpan< SceneRef > | Scenes [get] |
| The scenes list. | |
| int | Version [get] |
| Version number. | |
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 |
| readonly bool Equals | ( | NetworkSceneInfo | other | ) |
Compares two NetworkSceneInfo for equality.
| other | The other NetworkSceneInfo |
| override readonly bool Equals | ( | object | obj | ) |
Compares two NetworkSceneInfo for equality.
| obj | The other NetworkSceneInfo |
| override readonly int GetHashCode | ( | ) |
Get the hash code of the NetworkSceneInfo.
| readonly 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 |