Markup-Attributes
Unity-SerializableDictionary
Our great sponsors
Markup-Attributes | Unity-SerializableDictionary | |
---|---|---|
3 | 4 | |
275 | 676 | |
- | - | |
0.0 | 0.0 | |
almost 2 years ago | about 3 years ago | |
C# | C# | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Markup-Attributes
-
I have a massive list of variables in the inspector that keeps clogging my script, making it super tedious to work on. Is their any way I could group them all together in a folder and just close and open the folder in the inspector? Like a more advanced Header for groups of variables?
Unfortunately, attributes can only annotate members or types, not scopes. NaughtyAttributes, as suggested below, is excellent, but I find MarkupAttributes to be even more elegant -- just one attribute is needed for a foldout group, as opposed to the same attribute on every field.
-
Is Odin still worth it?
Markup Attributes - Does layout and grouping of fields using attributes. I find it's styling to be the most inline with native Unity, and most likely what I will be in my next project. It also supports material editors. Overall it is quite light weight, and good quality.
-
I made an open source plugin for controlling editor layout with attributes. It works in C# and in ShaderLab. Link in the comments.
Here is the link: https://github.com/gasgiant/MarkupAttributes
Unity-SerializableDictionary
- How can I implement this feature?
- A Free Serialized Dictionary to help you get your game done faster
-
Is Odin still worth it?
Unity SerializableDictionary - It works, but doesn't follow Unity styling well imo, it's code is more complex than need be, and it handles lists as values poorly. You also may run in to issues if you do semi-advanced stuff with custom editors.
-
Made a dictionary that you can edit in the inspector and thought some of you might like it [Link in Comments]
I've been using this package for some years now, not sure if you know about it: https://github.com/azixMcAze/Unity-SerializableDictionary
What are some alternatives?
NaughtyAttributes - Attribute Extensions for Unity
Unity-SerializeReferenceExtensions - Provide popup to specify the type of the field serialized by the [SerializeReference] attribute in the inspector.
UnitySerializedDictionary - Serialized and drawed in editor Dictionary
Serially - Adds a unity-supported, SerializableType class and an inspector for editing SerializeReference fields.
Bewildered-Core - Common use data types, and utilities for Unity that are high-quality and feel like a native part of Unity
Unity-Editor-Toolbox - Tools, custom attributes, drawers, hierarchy overlay, and other extensions for the Unity Editor.
UnityNativeScripting - Unity Scripting in C++
UIWidgets - UIWidget is a Unity Package which helps developers to create, debug and deploy efficient, cross-platform Apps.