Photon Fusion 2.0.0

Classes | Static Public Member Functions | Public Attributes | Properties | List of all members
NetworkProjectConfigAsset Class Reference

Manages and references the current instance of NetworkProjectConfig More...

Inherits FusionGlobalScriptableObject< T >.

Classes

struct  SerializableSimulationBehaviourMeta
 An auto-generated list containing meta information about all the SimulationBehaviours in the project, e.g. execution order. More...
 

Static Public Member Functions

static bool TryGetGlobal (out NetworkProjectConfigAsset global)
 Try to get the current NetworkProjectConfig instance.
 
static void UnloadGlobal ()
 Unload the current NetworkProjectConfig instance.
 

Public Attributes

SerializableSimulationBehaviourMeta[] BehaviourMeta = Array.Empty<SerializableSimulationBehaviourMeta>()
 An auto-generated list containing meta information about all the SimulationBehaviours in the project, e.g. execution order.
 
NetworkProjectConfig Config = new NetworkProjectConfig()
 The current NetworkProjectConfig instance.
 
NetworkPrefabTableOptions PrefabOptions = NetworkPrefabTableOptions.Default
 Options for the NetworkPrefabTable.
 
List< INetworkPrefabSourcePrefabs = new List<INetworkPrefabSource>()
 An auto-generated list containing source information (e.g. Resource path, address, static reference) for all the prefabs that can be spawned, i.e. the ones with NetworkObject component and NetworkObject.IsSpawnable enabled.
Additional prefabs can registered at runtime with NetworkPrefabTable.TryAddSource.
 

Properties

static NetworkProjectConfigAsset Global [get]
 The current NetworkProjectConfig instance.
 
static bool IsGlobalLoaded [get]
 True if the NetworkProjectConfig instance exists, otherwise false.
 

Detailed Description

Manages and references the current instance of NetworkProjectConfig

Member Function Documentation

◆ TryGetGlobal()

static bool TryGetGlobal ( out NetworkProjectConfigAsset  global)
static

Try to get the current NetworkProjectConfig instance.

Parameters
globalNetworkProjectConfig instance if it exists, otherwise null.
Returns
True if the NetworkProjectConfig instance exists, otherwise false.