Dropdown list in Unity Editor

A handy little piece of code that lets you select from a pre-populated drop down list in the inspector. Make sure both of your variables are set to public otherwise it will error (C#).

2 Responses to “Dropdown list in Unity Editor”

  1. Carsten:

    Nice, can you also provide it in js?

    • Ryan:

      Yes it would be exactly the same as above, other than you declare your variable as var territory:Territory. Hope this helps! :)

Leave a Reply