- Home /
Question by
RandomnessThatsFunny · Apr 07, 2018 at 05:49 AM ·
inspectorvariablesclass object
Inspector Drop Down for Variables
I have been wondering if there is something that could help me a lot. I have a class called voice pack that I would like to pick a pack from a drop down menu in inspector like here:
If i can do something similar to an enum dropdown but some how it relates to a VoicePack.SOMETHING variable that would be great. I haven't found a way I could easily do this.
public enum Voices
{
blip,
custom
}
private void OnTriggerEnter2D(Collider2D collision)
{
if(collision.gameObject.tag == "Player")
{
GameObject.Find("TextBackground").GetComponent<PlayerTalking>().bringUp(lines , "Portrait/" + portraitFileName, VoicePack.blip);
}
}
Thanks.
capture.png
(7.8 kB)
Comment