How to create a Drop Down menu for a script file?

Hi …

I want to create a script file that anyone can control the bool variables in it buy selecting the variable in a drop down menu…

Something like what is in the image below!

101973-mydrop.png

How can i do that?

You can use an enum…

public class MainClass : MonoBehaviour
{
     public enum Type{ One, Two, Three}
     public Type type;

     void Start()
     {
          //Example usage
          switch(type)
          {
               case Type.One:
                    Debug.Log("One");
               break;

               case Type.Two:
                    Debug.Log("Two");
               break;

               case Type.Three:
                    Debug.Log("Three");
               break;
          }
     }
}