Namespace: | Sirenix.OdinInspector.Editor |
Assembly: | Sirenix.OdinInspector.Editor |
public class OdinMenuStyle
The style settings used by OdinMenuItem.
A nice trick to style your menu is to add the tree.DefaultMenuStyle to the tree itself, and style it live. Once you are happy, you can hit the Copy CSharp Snippet button, remove the style from the menu tree, and paste the style directly into your code.
public OdinMenuStyle()
[BoxGroup("Triangle", true, false, 0F)]
public bool AlignTriangleLeft
[BoxGroup("Borders", true, false, 0F)]
[EnableIf("Borders")]
public float BorderAlpha
[BoxGroup("Borders", true, false, 0F)]
[EnableIf("Borders")]
public float BorderPadding
[BoxGroup("Borders", true, false, 0F)]
public bool Borders
[BoxGroup("Triangle", true, false, 0F)]
public bool DrawFoldoutTriangle
[BoxGroup("General", true, false, 0F)]
public int Height
[BoxGroup("Icons", true, false, 0F)]
public float IconOffset
[BoxGroup("Icons", true, false, 0F)]
public float IconPadding
[BoxGroup("Icons", true, false, 0F)]
public float IconSize
[BoxGroup("General", true, false, 0F)]
public float IndentAmount
[BoxGroup("General", true, false, 0F)]
public float LabelVerticalOffset
[BoxGroup("Icons", true, false, 0F)]
public float NotSelectedIconAlpha
[BoxGroup("General", true, false, 0F)]
public float Offset
[BoxGroup("Colors", true, false, 0F)]
public Color SelectedColorDarkSkin
[BoxGroup("Colors", true, false, 0F)]
public Color SelectedColorLightSkin
[BoxGroup("Colors", true, false, 0F)]
public Color SelectedInactiveColorDarkSkin
[BoxGroup("Colors", true, false, 0F)]
public Color SelectedInactiveColorLightSkin
[BoxGroup("Triangle", true, false, 0F)]
public float TrianglePadding
[BoxGroup("Triangle", true, false, 0F)]
public float TriangleSize
public GUIStyle DefaultLabelStyle { get; set; }
public Color SelectedColor { get; }
public Color SelectedInactiveColor { get; }
public GUIStyle SelectedLabelStyle { get; set; }
public static OdinMenuStyle TreeViewStyle { get; }
public OdinMenuStyle Clone()
OdinMenuStyle |
public OdinMenuStyle SetAlignTriangleLeft(bool value)
System.Boolean | value |
OdinMenuStyle |
public OdinMenuStyle SetBorderAlpha(float value)
System.Single | value |
OdinMenuStyle |
public OdinMenuStyle SetBorderPadding(float value)
System.Single | value |
OdinMenuStyle |
public OdinMenuStyle SetDrawFoldoutTriangle(bool value)
System.Boolean | value |
OdinMenuStyle |
public OdinMenuStyle SetIconOffset(float value)
System.Single | value |
OdinMenuStyle |
public OdinMenuStyle SetIconPadding(float value)
System.Single | value |
OdinMenuStyle |
public OdinMenuStyle SetIndentAmount(float value)
System.Single | value |
OdinMenuStyle |
public OdinMenuStyle SetNotSelectedIconAlpha(float value)
System.Single | value |
OdinMenuStyle |
public OdinMenuStyle SetSelectedColorDarkSkin(Color value)
UnityEngine.Color | value |
OdinMenuStyle |
public OdinMenuStyle SetSelectedColorLightSkin(Color value)
UnityEngine.Color | value |
OdinMenuStyle |
public OdinMenuStyle SetTrianglePadding(float value)
System.Single | value |
OdinMenuStyle |
public OdinMenuStyle SetTriangleSize(float value)
System.Single | value |
OdinMenuStyle |