Hai_'s Groupable Inspector Fields
hai_25
$4.99
(no ratings)
Date |
Price |
---|---|
日期和时间 |
价钱($) |
07/16(2024) |
4.99 |
11/02(2024) |
4.99 |
Jump AssetStore
Enhance Unity's Inspector by grouping fields into collapsible sections for clearer organization.The Groupable Fields Package offers customizable organization of serialized fields in the Unity Inspector into collapsible groups, easily implemented into existing projects. Suitable for any genre, it enhances project clarity and usability.# How to use!Create an editor script and add this to the Editor tag (Line above the class)[CustomEditor(typeof(NameOfYourScript), true), CanEditMultipleObjects]", true), CanEditMultipleObjects]" - This part is incredibly important!Add this line to the top of the editor script:using Hai.EditorUtilities;Dont forget to execute the base.OnInspectorGUI() method!Just like this: public override void OnInspectorGUI() { base.OnInspectorGUI(); }Now for the script portion:Add this line to the top of the script you were going to edit with editor script:using Hai.EditorUtilities;This will now put all of the inspector fields, into an "Ungrouped" Group.All you need to do is to freely define your own groups!Like this:[FoldoutGroup("My Favourite Foldout", ColorPalette.Options.White)][FoldoutGroup("This is all it takes", ColorPalette.Options.Blue)]Remember, the FoldoutGroup will automatically grab all the fields and put them into the group, untill it finds a NEW FoldoutGroup definition.No need to define the same FoldoutGroup for every field!Key Features of the Groupable Fields Unity Package:Collapsible Groups: Organize serialized fields into expandable and collapsible groups within the Unity Inspector using the FoldoutGroupAttribute.Easy Integration: Can be quickly and seamlessly integrated into existing Unity projects without disrupting current workflows.Extensive Customization: Offers extensive options for customizing the appearance and functionality of the grouped fields, including the ability to define custom colors for group headers.Editor Script Enhancement: Includes a custom editor script class (GroupableFieldsEditor), allowing developers to extend the default behavior and implement custom GUI controls for grouped fields.Management of Ungrouped Fields: Automatically sorts and displays fields without a specific group under an 'Ungrouped Fields' section, ensuring no field is overlooked in the UI.UI Efficiency Tools: Provides tools to expand or collapse all groups with a single action, streamlining the management and navigation within the Inspector.I used it to create cool icons, so more people look at my project!