Photon Fusion 2.0.3

Public Member Functions | Public Attributes | List of all members
SceneLoadDoneArgs Struct Reference

Struct that contains information about a scene after it has been loaded. More...

Public Member Functions

 SceneLoadDoneArgs (SceneRef sceneRef, NetworkObject[] sceneObjects, Scene scene=default, GameObject[] rootGameObjects=default)
 Constructs a new SceneLoadDoneArgs struct. More...
 

Public Attributes

readonly GameObject[] RootGameObjects
 Array of root GameObjects present in the loaded Unity scene. More...
 
readonly Scene Scene
 The loaded Unity scene. More...
 
readonly NetworkObject[] SceneObjects
 Array of NetworkObjects present in the loaded scene. More...
 
readonly SceneRef SceneRef
 Reference to the loaded scene. More...
 

Detailed Description

Struct that contains information about a scene after it has been loaded.

Constructor & Destructor Documentation

◆ SceneLoadDoneArgs()

SceneLoadDoneArgs ( SceneRef  sceneRef,
NetworkObject[]  sceneObjects,
Scene  scene = default,
GameObject[]  rootGameObjects = default 
)

Constructs a new SceneLoadDoneArgs struct.

Parameters
sceneRefReference to the loaded scene.
sceneObjectsArray of NetworkObjects present in the loaded scene.
sceneThe loaded Unity scene.
rootGameObjectsArray of root GameObjects present in the loaded Unity scene.

Member Data Documentation

◆ RootGameObjects

readonly GameObject [] RootGameObjects

Array of root GameObjects present in the loaded Unity scene.

◆ Scene

readonly Scene Scene

The loaded Unity scene.

◆ SceneObjects

readonly NetworkObject [] SceneObjects

Array of NetworkObjects present in the loaded scene.

◆ SceneRef

readonly SceneRef SceneRef

Reference to the loaded scene.