Photon Fusion 2.0.0

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.
 

Public Attributes

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

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.