RegisterUniqueId
method in Coherence.Toolkit.CoherenceSync
Methods
public void RegisterUniqueId(string uniqueIdentifier)
Registers a unique identifier to be later applied by CoherenceSync.
Parameters
Type | Name | Description |
---|---|---|
string | uniqueIdentifier | The unique identifier to register. |
Remarks
Internally, a queue is maintained. Multiple unique identifiers can be queued at any time.
Queued identifiers are dequeued by CoherenceSync's OnEnable event (see MonoBehaviour). If the queue contains items while a CoherenceSync goes through the OnEnable event, that entity will get that unique identifier assigned, instead of it's predetermined identifier - ManualUniqueId.
Empty or null identifiers are ignored, and ManualUniqueId is used instead.