Table of Contents

SpawnInfo

The spawn information for a network entity. Used when coherence needs to instantiate a CoherenceSync prefab and link it to a new network entity.

Fields
assetId

The assetID is the GUID reference given to each file in your Unity project's Asset folder.

bridge

The bridge associated with the network entity.

clientId

The client ID of the entity.

connectedEntity

The network Entity that will be spawned using the information in this class.

connectionType

The connection type.

isFromGroup

If the entity is part of a PrefabSyncGroup this will be set to true.

position

The world space position of the entity.

prefab

The prefab of the entity.

rotation

The rotation of the entity in world space.

uniqueId

The unique identifier of this entity. See ManualUniqueId

Methods
GetBindingValue

Returns the initial data that will be applied to a network instantiated entity's bindings. This method is intended to query pre-synced data during Instantiate(SpawnInfo). It can be useful when it is necessary to know a field's value ahead of time, e.g., to identify the proper pool or asset to use when instantiating a remote entity. If multiple matches exist for the given binding name and type, the first binding in the Bindings list is returned.