Hello. I got player ability(float) and on m key i got menu. I want to display it in this way: When float=0 display it as “-”, when float=1 display it as “Beginner”, when float=2 display it as “Advanced” and when float=3 display it as “Master”. Where is mistake? After initial configuration it looks like this. UE 5.0
Yes, that should work (You’d have to properly attach the nodes first though). But a better way of doing it (assuming all your player ability floats are whole numbers and have no decimals) would be to truncate your ability float into an integer and attach said integer to a switch node (I also assume all of these nodes still exist in UE5, because I only use UE4). In case UE5 has a different way of converting floats to integers, just attach the float output pin to an integer input pin, and the engine should automatically make a conversion node. Also, if your player abilities float will never use the decimal value, I’d recommend just using an integer variable, unless somewhere else in your project, you need this to be a float. Here is a picture about what I’m talking about (In UE4, so you might have to adjust it to UE5):
Also, if you need the text to be a variable, just hook the pins into “set variable” nodes instead, and then put the variable into the return node like how you did in your photo.
Works nice. Thanks for help. #Solved.