How to set the value of an Enumerator?
Possibly a stupid question but I'm hoping to create a public Enumerator for "Object Size" for my game where the size of the object correlates to a specific Float Value. So my Enumerator is "Tiny, Small, Medium, Large and Huge" and when placing the object in the level, you can choose from a drop down list to specify the size and get a different result based on this.
The problem I'm having is that I don't know how to set the value of these Enums. If I want Tiny to equal 0.5 and Small to equal 1.0 and Medium to equal 10 etc. how do you do set this in the blueprint? I figured you'd be able to set the value of the Enums inside the enumerator itself but you can't.
Maybe using Enums isn't the best way to achieve what I want?
asked Apr 26 '16 at 12:47 AM in Using UE4
Switch on %Name Of Enumerator would do the trick
you can switch on string or integer.
Also there are Select node, which work with a lot of stuff
As wildcard, you can use integer, enumeration or bool, as for selectable variable might be everything, from actor and actor arrays to structures, enumerations and arrays their arrays.
To change selectable type or what type you base of your selection, you need to drag wire from variable to the node. For Array select is tricky, little bit, you need to connect your variable type to option before return.
answered Apr 26 '16 at 02:29 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here