Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

How to make multiple selection mask at Inspector?

Discussion in 'Scripting' started by leegod, Sep 15, 2014.

  1. leegod

    leegod

    Joined:
    May 5, 2010
    Posts:
    2,321
    So I want to assign multiple my custom enum's value to my class's value's Inspector.

    Unity's default example is [Main Camera] gameobject's [Culling Mask] inspector. User can assign multiple values to there.

    How can I make like this for my value?

    Thanks.
     
  2. LightStriker

    LightStriker

    Joined:
    Aug 3, 2013
    Posts:
    2,716
  3. AlkisFortuneFish

    AlkisFortuneFish

    Joined:
    Apr 26, 2013
    Posts:
    958
  4. LightStriker

    LightStriker

    Joined:
    Aug 3, 2013
    Posts:
    2,716
    Not sure, but I think this one is new from 4.5...

    Which would have saved me ton of work a while ago.
     
  5. AlkisFortuneFish

    AlkisFortuneFish

    Joined:
    Apr 26, 2013
    Posts:
    958
    Yeah, it must be, as I'm quite sure I've written my own in the past as well.