HasUndesiredOverrides
method in Coherence.Editor.CoherenceSyncUtils
Methods
public static bool HasUndesiredOverrides(CoherenceSync sync)
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.
Parameters
| Type | Name | Description |
|---|---|---|
| CoherenceSync | sync | CoherenceSync component that's part of a Prefab Instance. |
Returns
| Type | Description |
|---|---|
| bool | true if the component has undesired overrides; false otherwise. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | When |