Inspect members
The Concordance window lists the members your scripts modify and the ones you watch. For each member, it shows its modifier order, every write to it in your project and, in Play mode, how its value is computed.
Open a member
To open a member in the Concordance window, perform the following steps:
- Go to Tools > Concordance > Open Window.
- Select the member in the list on the left. To find a member that isn't listed, search for it.
The member's details show its Modifier Order, and its Writes section lists every other write to it in your project. In Play mode, its Values section shows the base value, then each modifier with its owner and the value after it, then the value. Select a file and line to open it in your code editor.
Watch a member
Watching a member records its History of changes in Play mode. On a member that no script modifies, watching it is also what shows its values and flags its conflicting writes. To watch a member, select Watch at the top right of its details, then one of the following:
| Option | Description |
|---|---|
| Watch for This Session | Watches the member until you exit Play mode. Selected in Edit mode, it watches the member for the next Play session. |
| Watch Always | Watches the member in every Play session. Saved for you only, in the project's UserSettings folder. |
In the member list, right-click a member for the same options, or select its eye to watch it for this session.
Fix conflicting writes
When two objects write the same member with plain writes, each replaces the other's value. The Concordance window flags these conflicting writes in Play mode, with the line of each. On a member that no script modifies yet, watch the member first. To fix the conflict, turn one of the writes into a modifier:
// Before: caches the value, writes its own value, and writes the cached value back.
cached = body.gravityScale;
body.gravityScale = cached * 0.5f;
// ...
body.gravityScale = cached;
// After: a modifier, and its stop.
body.gravityScale *= (Modifier)0.5f;
// ...
body.gravityScale = Modifier.Stop;
When the writers are meant to replace each other, such as a loader and a reset, select
Mark as Intended on the conflict, or enable Intended on their scripts in the
member's Writes section. The marks are saved in
ProjectSettings/ConcordanceIntendedWriters.asset.
View modified members in the Inspector window
When you select a GameObject or a ScriptableObject, the Inspector window shows its modified members in a Concordance section under its header. Select a row to open its member in the Concordance window.