Search Unity

Working with Enums

Discussion in 'Immediate Mode GUI (IMGUI)' started by Perceive, Jul 8, 2017.

  1. Perceive

    Perceive

    Joined:
    Aug 2, 2013
    Posts:
    10
    I wanted to share my first devlog covering Enums in Unity. This first post is mainly an introduction to working with enums, but my next week's post will cover how to write custom PropertyDrawers for flagged enums (masked enums, combined enums, bitmask enums, etc.). And on top of that, I'll be showing how to properly write PropertyDrawers that work with multi-object selections, regardless if your Field drawer takes a SerializedProperty as a parameter.

    Here's Pt. 1: Enum Basics. And as a teaser for next week, here's the PropertyDrawer in action that we'll be writing:



    Let me know what you think, including any comments and criticisms. I have a vast knowledge of writing PropertyDrawers, custom Editors & Inspectors, and Editor tools that I'd love to share with the community.
     
    LaireonGames likes this.
  2. Perceive

    Perceive

    Joined:
    Aug 2, 2013
    Posts:
    10