I’ve been working with CanEditChange and I understand how it works with basic properties, however I have an array of USTRUCT that I need to check, and I can’t for the life of me figure out how to determine which element of the array I’m in.
The simplified structure of the object is 2 variables, an UENUM and an integer. These are the possible values for the UENUM:
- String
- Integer
- Float
- Boolean
If the UENUM is set to Integer, I want the integer variable to be editable, otherwise not.
If i didn’t have these in an array, I could do it easily, but I don’t know how to determine which array element I’m iterating over, thus I don’t know which array element to check the enum type on.
Any help would be appreciated.