RemoveUndesiredOverrides
method in Coherence.Editor.CoherenceSyncUtils
Methods
public static int RemoveUndesiredOverrides(CoherenceSync sync, InteractionMode interactionMode = 0)
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.
Parameters
Type | Name | Description |
---|---|---|
CoherenceSync | sync | CoherenceSync component that's part of a Prefab Instance. |
InteractionMode | interactionMode | Indicates whether the user should be prompted for confirmation or performed automatically. |
Returns
Type | Description |
---|---|
int | Number of removed overrides. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | When |