Scry panels and answers
Answers and attributes
The controls in a Scry panel that change how Scry handles a member are answers. For example, Visibility shows a member, hides it, or makes it read-only, and Style decides who draws it: Scry, or Unity as Unity's Inspector would. Set Style in a field's panel for that field, or in the component's panel for its whole Inspector.
Picking a value overrides the answer's default, as a prefab override does, even when you pick the value it already had. To return to the default, right-click its line and select Clear Answer. Scry saves your answers in the project's UserSettings folder, which version control usually leaves out, so they change only your own Inspector.
To apply an answer for everyone working on the project, write it into the script as an attribute: right-click its line, select Copy as Attribute, and paste the attribute on the member or the type. An attribute sets the default; each user can still answer otherwise, unless the attribute sets Force = true.
| Attribute | On | Effect |
|---|---|---|
[Scry.Style.Scry] | A serialized field, a class or a struct | Scry's drawing, even where a property drawer or a custom editor would apply. |
[Scry.Style.Unity] | A serialized field, a class or a struct | Unity's drawing. On a component or ScriptableObject class, Unity's default Inspector. |
[Scry.Layout.AsWritten] | A class or struct | Members in the order and structure the code declares. |
[Scry.Layout.Sorted] | A class or struct | Members grouped by kind: serialized fields, other fields and properties, events and methods, then static members. |
[Scry.Visibility.Shown] | A field, property, method or event | Shown and editable, even when the member is not public. |
[Scry.Visibility.ReadOnly] | A field, property, method or event | Shown, read-only. |
[Scry.Visibility.Hidden] | A field, property, method or event | Not shown. The search still finds it. |
[Scry.EffectIntended] | A method or property | Never asks before running it. |
[Scry.NotLive] | A method or property | Not live: a getter or method updates when you select its name, and a setter applies on release or Enter. |
For every attribute, refer to the Public API.