Photon Fusion
2.1.1
Represents the context for acquiring a prefab instance for a network object. This struct is unsafe because it uses pointers. More...
Public Member Functions | |
| NetworkObjectAcquireContext (NetworkObjectTypeId typeId, NetworkObjectMeta meta=null, bool isSynchronous=true, bool dontDestroyOnLoad=false, NetworkObject attachableInstance=null) | |
| Initializes a new instance of the NetworkPrefabAcquireContext struct with the specified parameters. | |
Public Attributes | |
| readonly NetworkObject | AttachableInstance |
| Attachable instance. Usually this is the object previously passed in NetworkRunner.RegisterSceneObjects. | |
| 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 NetworkObjectTypeId | TypeId |
| The identifier of the prefab. | |
Properties | |
| ReadOnlySpan< int > | Data [get] |
| Gets the data pointer to the first word of this NetworkObject's data block. | |
| bool | HasHeader [get] |
| Checks if the Header is not null. | |
| ref NetworkObjectHeader | Header [get] |
| Returns the Header if it is not null; otherwise, returns null. | |
| NetworkPrefabId? | PrefabId [get] |
| Prefab id or null if the type is not a prefab. | |
Represents the context for acquiring a prefab instance for a network object. This struct is unsafe because it uses pointers.
| NetworkObjectAcquireContext | ( | NetworkObjectTypeId | typeId, |
| NetworkObjectMeta | meta = null, | ||
| bool | isSynchronous = true, | ||
| bool | dontDestroyOnLoad = false, | ||
| NetworkObject | attachableInstance = null ) |
Initializes a new instance of the NetworkPrefabAcquireContext struct with the specified parameters.
| typeId | The identifier of the type. |
| 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. |
| attachableInstance | TODO |
|
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.