ColorPaletteManager

Add, Edit or remove custom color palettes used by the ColorPaletteAttribute.

You can modify the configuration in the Odin Preferences window found in 'Tools -> Odin Inspector -> Preferences -> Drawers -> Color Palettes', or by locating the configuration file stored as a serialized object in the Sirenix folder under 'Odin Inspector/Config/Editor/ColorPaletteManager'.

namespace Sirenix.OdinInspector.Editor
{
[UnityEditor.InitializeOnLoadAttribute]
[Sirenix.Utilities.SirenixEditorConfigAttribute]
public class ColorPaletteManager : GlobalConfig<ColorPaletteManager>
}

Requirements

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector
Version: 1.0.6.1

Properties

Return Type Definition Description
List<ColorPalette> ColorPalettes Gives you the list of all custom color palettes. Remember to call UnityEditor.EditorUtility.SetDirty(ColorPaletteManager.Instance) after modifying the list.
bool ShowPaletteName If true, a toolbar with the name of the color palette is shown above each color palette.
bool StretchPalette If true, all color in a color palette is stretch so that the entire color-palette area is filled.
int SwatchSize Specify the width of each color in a color palette. If StretchPalette is set to true, this will become the min-width.
int SwatchSpacing Specify the amount of spacing between each color in a color palette.