Photon Fusion 2.0.3

Public Attributes | Properties | List of all members
NetworkPrefabInfo Struct Reference

Meta data for a NetworkObject prefab which has been cataloged in a NetworkProjectConfig.PrefabTable. More...

Public Attributes

readonly NetworkObjectHeaderHeader
 Header data for the NetworkObject prefab. More...
 
readonly bool IsSynchronous
 Is the prefab supposed to be loaded in a synchronous way. Fusion will report an error if this field is set to true and no prefab is returned by INetworkObjectProvider. More...
 
readonly NetworkPrefabId Prefab
 Prefab ID. Use NetworkPrefabTable.TryAddSource to look up the actual prefab reference in the NetworkProjectConfig.PrefabTable. More...
 

Properties

int * Data [get]
 Data pointer to the first word of this NetworkObject's data block. More...
 
bool HasHeader [get]
 If the Header is not null. More...
 

Detailed Description

Meta data for a NetworkObject prefab which has been cataloged in a NetworkProjectConfig.PrefabTable.

Member Data Documentation

◆ Header

readonly NetworkObjectHeader* Header

Header data for the NetworkObject prefab.

◆ IsSynchronous

readonly bool IsSynchronous

Is the prefab supposed to be loaded in a synchronous way. Fusion will report an error if this field is set to true and no prefab is returned by INetworkObjectProvider.

◆ Prefab

readonly NetworkPrefabId Prefab

Prefab ID. Use NetworkPrefabTable.TryAddSource to look up the actual prefab reference in the NetworkProjectConfig.PrefabTable.

Property Documentation

◆ Data

int* Data
get

Data pointer to the first word of this NetworkObject's data block.

◆ HasHeader

bool HasHeader
get

If the Header is not null.