Grey out public variable

Hi,
Is there a way to grey out public variables in the editor based on a condition? Like if a checkbox is checked, some options are disabled to prevent some mistakes or confusion when changing public variable values from the editor.

Kind of like this
image
image

The only thing that comes to mind is private variables or Read-Only:

Declaring a private member in the parent class prevents the derived classes from dynamically setting it. The default value can still be modified.

The whole private vs protected vs public in BPs is somewhat shaky, at best :expressionless:

1 Like

In C++ you have Property Edit Conditions that you can specify for variables:

This way you can have a set of UPROPERTIES that require another boolean to be true in order to edit. However, this functionality doesn’t exist in Blueprints explicitly, only in C++. I hope this helps.

1 Like