Hey all! After browsing the web for a few hours I’ve decided to ask y’all!
I’m wondering if it’s possible to (as the title states) grab a non-specific enum value. In other words, if I were to select a variable in a list of 5 items. Then how could I retrieve the transform of any of the object without being specific? At the moment I’m assuming an enum 'list" can work just like a List, Dictionary, Array, etc. in regards to grabbing values/variables. Perhaps that’s not true, but if that’s the case, please tell me
Some code to potentially clarify what I mean.
public enum Inventories{backpack, head, body, boots};
transform.position = Inventories.(transform value of one of the selected options)
I know I can use switch and such but I want to prevent using anymore code than I have to.