Skip to content
TomCrypto edited this page Dec 17, 2014 · 1 revision

The EnumVariable lets you create a variable offering a selection of choices represented by the enum members. Of importance is that fact that you cannot assign an out of bounds (invalid) enum value to the variable, since it cannot be represented graphically.

By default an EnumVariable will graphically display the name of the enum value as defined in your code. You can give it a custom name or summary by tagging your enum values with a DescriptionAttribute, it will be picked up by AntTweakBar.NET and displayed instead of the raw enum name.


  • High-level wrapper
  • Integration
    • [Event handling](Event handling)
    • [Organizing variables](Organizing variables)
    • [Error handling](Error handling)
    • Scripting
    • [Exception safety](Exception safety)
    • [Thread safety](Thread safety)
  • Technical manual
    • Context
    • Bar
    • Group
    • IntVariable
    • FloatVariable
    • DoubleVariable
    • BoolVariable
    • EnumVariable
    • StringVariable
    • ColorVariable
    • Color4Variable
    • VectorVariable
    • QuaternionVariable
    • StructVariable
    • Button
    • Separator
    • ...
  • [Low-level wrapper](Low-level wrapper)
Clone this wiki locally