Table of Contents

CoherenceSyncUtils

Utility class for CoherenceSync related operations.

Methods
AddBinding

Adds a Binding to a CoherenceSync.

DestroyCoherenceComponents

Destroys the CoherenceSync component for the given GameObject, and any other component that depends on it.

GetComponentActionsCount
GetMethodBindingsCount
HasUndesiredOverrides

Checks whether a given Prefab Instance contains overrides that might impede networking. Reasons why such overrides may occur are diverse: from manual editing (via script or Inspector debug mode) to legacy implementations mistakenly modifying them.

IsBindingValid

Check if a binding on a CoherenceSync component is valid.

RemoveBinding

Removes a Binding from a CoherenceSync.

RemoveBindings
RemoveInvalidBindings

Removes all invalid Bindings from a given CoherenceSync.

RemoveUndesiredOverrides

Removes overrides from a Prefab Instance that might impede networking. Reasons why such overrides may occur are diverse: from manual editing (via script or Inspector debug mode) to legacy implementations mistakenly modifying them.

TryConvertToCoherenceSyncPrefab

Adds a CoherenceSync component and converts a GameObject into a Prefab. Prefabs using CoherenceSync are ready to be networked by coherence.

UpdateBindings

Updates Binding Descriptors, adds missing required Bindings, and removes invalid Bindings.

Events
OnBeforeBindingAdded

Raised before adding a binding to Bindings.

OnBeforeBindingRemoved

Raised before deleting a binding from Bindings.