Hide
SepTitle

A separator with text. This is a decorator type attribute, which means used on list/array will draw itself above the list/array (not above each element of list/array).

  • string title=null display a title. null for no title, only separator.

    UI Toolkit: support rich labels except <field/> & <container/> tag.

    IMGUI: only support unity standard rich labels

  • EColor color=EColor.Gray color for the title and the separator

  • EAlign eAlign=EAlign.Start how the title is positioned, options are:

    • EAlign.Start
    • EAlign.Center
    • EAlign.End
  • int space=0 leave some space above or below the separator, like what Space does.

using SaintsField; [SepTitle("Separate Here", EColor.Pink)] public string content1; [SepTitle(EColor.Green)] public string content2;

sep_title