Represents the context for acquiring a prefab instance for a network object. This struct is unsafe because it uses pointers. More...
Public Member Functions | |
NetworkPrefabAcquireContext (NetworkPrefabId prefabId, NetworkObjectMeta meta=null, bool isSynchronous=true, bool dontDestroyOnLoad=false) | |
Initializes a new instance of the NetworkPrefabAcquireContext struct with the specified parameters. More... | |
Public Attributes | |
readonly bool | DontDestroyOnLoad |
Indicates whether the network object should not be destroyed on load. More... | |
readonly bool | IsSynchronous |
Indicates whether the operation is synchronous. More... | |
readonly NetworkObjectMeta | Meta |
The metadata of the network object. More... | |
readonly NetworkPrefabId | PrefabId |
The identifier of the prefab. More... | |
Properties | |
int * | Data [get] |
Gets the data pointer to the first word of this NetworkObject's data block. More... | |
bool | HasHeader [get] |
Checks if the Header is not null. More... | |
Represents the context for acquiring a prefab instance for a network object. This struct is unsafe because it uses pointers.
NetworkPrefabAcquireContext | ( | NetworkPrefabId | prefabId, |
NetworkObjectMeta | meta = null , |
||
bool | isSynchronous = true , |
||
bool | dontDestroyOnLoad = false |
||
) |
Initializes a new instance of the NetworkPrefabAcquireContext struct with the specified parameters.
prefabId | The identifier of the prefab. |
meta | The metadata of the network object. |
isSynchronous | Indicates whether the operation is synchronous. |
dontDestroyOnLoad | Indicates whether the network object should not be destroyed on load. |
readonly bool DontDestroyOnLoad |
Indicates whether the network object should not be destroyed on load.
readonly bool IsSynchronous |
Indicates whether the operation is synchronous.
readonly NetworkObjectMeta Meta |
The metadata of the network object.
readonly NetworkPrefabId PrefabId |
The identifier of the prefab.
|
get |
Gets the data pointer to the first word of this NetworkObject's data block.
InvalidOperationException | Thrown when the Header is null. |
|
get |
Checks if the Header is not null.