I am creating my first blutility on a Widget blueprint. I want it to be able to change its public variables values on the instance by the press of a blutility button.
The thing is that it doesn’t mark them as overriden (like if I edited the variable manually). So as soon as I hit the Compile button, they return to their original value.
Have tried to add a Transaction (with also Transact Object) without success.
Note that the method works if I call it in Pre-construct event upon a boolean parameter, but I feel it could be nicer with a Blutility…
I simply set the variables in my Call in Editor function.
Here is the code:
In the Pre construct Event, I simply get the variable and assign it onto the UMG elements.
Edit: Note that even if I remove the Preconstruct Event, it is the same behavior. I don’t know how to make the blutility function really save my modification on the variables.µ
What’s crazy is that if I call the blutility function from the PreConstruct event, it really saves the values (showing the spinning arrow on the right side of the instance variable)