Public variables greyed out

Hey everyone,

I know this has been asked before but that was a couple of years ago. I am using a blueprint with a lot of variables that are switched with selector node. Does anyone know if there is a way to grey out or completely hide variables if they aren’t selected or switched? Preferebly in Blueprints as my C++ isn’t that good. I am using UE 5.1 btw!

Thanks!

Hi, no idea if this can be done in BP (I think not) but in C++ you can use the EditConditions

This is detailled in this post (it works in 5.1 too,)

or
https://thomassampson.co.uk/posts/ue4-uproperty-editcondition/

+++
jnat

1 Like

Thanks for your answer! Hope it will be easy enough for me to understand. Not really a programmer, but maybe its just my denail and its time to dive into C++ at last.