Inspector reference
Every mark, button and panel item Scry draws.
Row marks
| Mark | Description |
|---|---|
| Grey bar at the left edge | Serialized: Unity saves the value with the object. |
| No bar on a field | Not serialized: an edit lasts until the next domain reload. |
| Underlined label | Static, shared by every instance. |
| Struck-through label | The value does not matter in the current state, such as a field the code uses only while a toggle is on, while the toggle is off. |
| Yellow or red outline | A value the code rejects. |
| Box at an end of a number field | The nearest limit the code sets on that side: a minimum or maximum (0 ≤), a range of values it excludes (∉ -1, 1), the value where it wraps around (360 ↻), or a value it rejects (≠ 0). A value typed or dragged past it becomes the value the code would make of it. |
| Muted suffix inside a field, such as s | The value's unit, from how the code uses it: s for a value passed to WaitForSeconds, °/s for a turn speed multiplied by Time.deltaTime and added to an angle. |
| Muted editor after a name | The member does nothing in a player build. |
| Muted dev after a name | The member does nothing in a release build. |
| Italic name, such as Result | A name Scry gives, where the code has none. |
| Diagonal stripes across a row | A member that is hidden, or left out by Show, shown because the search found it or its Scry panel is open. |
| Dimmed name and value | Read-only. |
| Trash button at the right end of a line | Sets the value to None. |
| Spinner after a name | The member's code changed, and Scry is still analyzing it. |
| Pause icon after a name | A live value paused because one read takes too long for every refresh. |
Code marks
| Mark | Description |
|---|---|
| Name on a faint fill | Code that runs when you select it: a method, an event to raise, a getter Scry reads only on request, or a property that has only a setter. |
| Name ending with () | A method. One that takes or returns more than one value folds open to its parameters, its button and its results. |
| Eye icon | The code changes nothing, so it runs freely. |
| Circular arrows | The code changes only its object, so a run is one undo step. |
| Clock | A coroutine or an asynchronous method. |
| Ellipsis after the name | The code does more than Scry can undo, so it asks before it runs. |
| Light box, an outline with no fill | A value computed by code, such as a get-only property or a method's result. |
| Parameter types, += and method names, for example (int) += Take Damage | An event: the types it passes, then the methods listening to it. |
Scry panel
| Item | Description |
|---|---|
| Declaration | The member's declaration, with a link to its line in your code editor. |
| Remarks | The <remarks> of its doc comment. |
| Facts | What Scry knows, each with its line, and a fix where Scry has one, such as Add Tag "Enemy". |
| Style | Scry or Unity, for a serialized field. |
| Visibility | Shown, Read-Only or Hidden. |
| Getter, Result | Live reads the value again at every refresh; On Request reads it only when you select its name. |
| Before It Runs, Before the Setter Applies | Ask or Don't Ask Again, for code that asks first. |
| Layout, Show | For a field holding a class or struct, which folds open to its members: their order and which kinds show. |
| Links | The <see href> links of its doc comment. |
Component header
| Item | Description |
|---|---|
| Magnifying glass | Searches the component's members by name, including hidden members and members of the values its fields hold. |
| Crystal ball | Opens the component's Scry panel. The number counts its warnings and errors. |
| Problems | Every warning and error, with a button that adds any component the code needs on the GameObject. |
| Hidden | Every hidden member, with Unhide. |
| Style | Scry, or Unity for Unity's default Inspector, for every component of the type. |
| Layout | As Written, in the order and structure the code declares, or Sorted, grouped by kind: serialized fields, other fields and properties, events and methods, then static members. |
| Show | Which kinds of member show: fields not serialized, properties, methods, events, and static members, which are off by default. Serialized fields always show. |
| Clear My Answers | Clears your answers for the type and its members. |
Doc comments
/// <summary>/// <param>,<returns>,<typeparam>/// <remarks>,<exception>,<see href>///text on its own line, above a member///text at the end of a member's line///and three or more of one symbol, for example/// -----///and text between runs of one symbol, for example/// ===== Combat =====#regionFields Scry draws ignore Unity's layout attributes,
[Header]and[Space]; fields whose Style is Unity keep them. A[Tooltip]is the row's tooltip, over the///summary. To read//comments instead of///, refer to the project settings.