Is there some kind of list I can expose in the editor that allows me to pick only one? I need a choice of three things and I could use bools but I thought there was a way I could make so that only one option can be selected.
Use an enum.
1 Like
Yes thank you.
Beware about enums being converted to ints under the hood - it may get messy if you add new enum values
Yes, this bigtime. If you insist on enums, always assign hard never-ever-changed unique integer values to enums you intend for Unity to serialize.
Enums are bad in Unity3D if you intend them to be serialized:
It is much better to use ScriptableObjects for many enumerative uses. You can even define additional associated data with each one of them, and drag them into other parts of your game (scenes, prefabs, other ScriptableObjects) however you like. References remain rock solid even if you rename them, reorder them, reorganize them, etc. They are always connected via the meta file GUID.