Manages and references the current instance of NetworkProjectConfig More...
Inherits FusionGlobalScriptableObject< NetworkProjectConfigAsset >.
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. More... | |
static void | UnloadGlobal () |
Unload the current NetworkProjectConfig instance. More... | |
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. More... | |
NetworkProjectConfig | Config = new NetworkProjectConfig() |
The current NetworkProjectConfig instance. More... | |
NetworkPrefabTableOptions | PrefabOptions = NetworkPrefabTableOptions.Default |
Options for the NetworkPrefabTable. More... | |
List< INetworkPrefabSource > | Prefabs = 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. More... | |
Protected Member Functions | |
override void | OnDisable () |
Unloads all prefabs. More... | |
Protected Member Functions inherited from FusionGlobalScriptableObject< NetworkProjectConfigAsset > | |
virtual void | OnLoadedAsGlobal () |
Invoked when the instance is loaded as global. More... | |
virtual void | OnUnloadedAsGlobal (bool destroyed) |
Invoked when the instance is unloaded as global. More... | |
Properties | |
static NetworkProjectConfigAsset | Global [get] |
The current NetworkProjectConfig instance. More... | |
static bool | IsGlobalLoaded [get] |
True if the NetworkProjectConfig instance exists, otherwise false. More... | |
Properties inherited from FusionGlobalScriptableObject< NetworkProjectConfigAsset > | |
static T | GlobalInternal [get, set] |
A singleton instance-like property. Loads or returns the current global instance. Derived classes can package it in a property with a different name. Throws if loading an instance failed. More... | |
bool | IsGlobal [get] |
Is this instance a global instance. More... | |
static bool | IsGlobalLoadedInternal [get] |
Returns true if a global instance is loaded. Compared to GlobalInternal, it does not attempt to load an instance. More... | |
Additional Inherited Members | |
Static Protected Member Functions inherited from FusionGlobalScriptableObject< NetworkProjectConfigAsset > | |
static bool | TryGetGlobalInternal (out T global) |
Loads or returns the current global instance. Returns null if loading an instance failed. More... | |
static bool | UnloadGlobalInternal () |
Unloads the global instance if it is loaded. More... | |
Manages and references the current instance of NetworkProjectConfig
|
protectedvirtual |
Unloads all prefabs.
Reimplemented from FusionGlobalScriptableObject< NetworkProjectConfigAsset >.
|
static |
Try to get the current NetworkProjectConfig instance.
global | NetworkProjectConfig instance if it exists, otherwise null. |
|
static |
Unload the current NetworkProjectConfig instance.
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<INetworkPrefabSource> Prefabs = 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.
|
staticget |
The current NetworkProjectConfig instance.
|
staticget |
True if the NetworkProjectConfig instance exists, otherwise false.