Skip to content

Kurloc/ColoredBoxGroup

Repository files navigation

ColoredBoxGroup

Requires Odin Inspector

Color Box Groups

  • Built-on Boxgroup and allows for coloring, titles and nesting.

Examples

image

Contributing

Feel free to dive in! Open an issue or submit PRs!

Code Examples

using Sirenix.OdinInspector.ColoredBoxGroup;
using UnityEngine;

public class Tester : MonoBehaviour
{
    // Implicit Title from Groupname
    [ColoredBoxGroup("ExampleOne", .76f, .23f, .64f, .98f)]
    public string exampleOne;

    // Explicit Title from Groupname
    [ColoredBoxGroup("ExampleTwo", "ExampleTwo", .1f, .96f, .1f, .3f)]
    public string exampleTwo;

    // Grouped Examples
    [ColoredBoxGroup("ExampleGroup", "ExampleGroup", .1f, .96f, .1f, .3f)]
    public string groupExampleItemOne;
    
    [ColoredBoxGroup("ExampleGroup", "ExampleGroup", .1f, .96f, .1f, .3f)]
    public string groupExampleItemTwo;
    
    // Nested Grouped Examples
    [ColoredBoxGroup("ExampleGroup/NestOne", "ExampleGroupNestOneOne", .1f, .0f, .99f, .3f)]
    public string groupExampleNestItemOneOne;

    [ColoredBoxGroup("ExampleGroup/NestOne", "ExampleGroupNestOneTwo")]
    public string groupExampleNestItemOneTwo;

    [ColoredBoxGroup("ExampleGroup/NestTwo", "ExampleGroupNestTwoOne", .99f, .01f, .0f, .9f)]
    public string groupExampleNestItemTwoOne;
    
    [ColoredBoxGroup("ExampleGroup/NestTwo", "ExampleGroupNestTwoTwo")]
    public string groupExampleNestItemTwoTwo;
}

Install

  1. In the unity editor go to window > package manager > + (in the top left) > add package from GIT URL
  2. Enter https://github.com/Kurloc/ColoredBoxGroup.git
  3. In the unity editor add a reference to the Assembly for ColoredBoxGroup then you should be able to reference & import the types like in the examples.

About

Colored Box Group for Odin Serializer

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages