Replies: 4 comments 7 replies
-
|
You can hide stuff in the debug view via Unity's HideInInspector attribute or in the case of the static members display you can use the HideProperty Attribute as well. Have you also considered adding the debug view as a separate tab for easier cycling? For your example use case scenarios, does simply creating a editor field like this not work? [SerializeField, ReadOnly] private int intField;
[field: SerializeField, ReadOnly] private int intProperty { get; set; }And as I said before you can already display static members for debug purposes. |
Beta Was this translation helpful? Give feedback.
-
|
Yes, this is possible but this doesn't seem to be a good way of doing this The idea is to easily show (optionally using any of the decorative, conditional or grouping attributes) variables that you want to see in runtime Your suggestions don't really allow for this:
Overall it seems simple -> "I want to show X", nothing more |
Beta Was this translation helpful? Give feedback.
-
|
@MikeSzym Just to mention that: this is actually a hell lot of work... For NaughtyAttributes, which only support some specific type (no class/struct support) & without editing support, it's around 100 lines of code For SaintsField, which supports nearly any type + interface with editing (but no custom drawer support), it's around 2.8k lines of code For Tri-Inspector, which supports any type (except dictionary) + interface + editing, it's around 200 lines base + 150 lines extra + 500 lines extra + some other parts I believe I haven't read yet... Sometimes Unity's built-in tools are way too limited for this function |
Beta Was this translation helpful? Give feedback.
-
|
Added equivalent in update 2.6.1, where you can now show all non serialized members via the object context menu |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
-
One of our most used attributes from Odin is the [ShowInInspector] attribute, usually in combination with [ReadOnly] -> https://odininspector.com/attributes/show-in-inspector-attribute
Example use cases:
While it is possible to achieve the above via the Debug view in inspector, this is not a convenient solution. Debug view ignores custom inspectors and shows all data, not just what is wanted by the developers
Beta Was this translation helpful? Give feedback.
All reactions