Inspector Behaviour?

I have a property X

public x as integer = 10

I convert it to a public computed property.

Now a have

mX, a getter and a setter.

I go to the class and right click it and bring up the inspector behaviour.
I select X and give it a default value. 100.

Now when i look at this object in the IDE the inspector should show 100 or 10.. I’m not sure…

I’m also not sure that I needed mX and the difference between ‘adding a computed property’ vs changing an existing property in to a computed property.

If an object was already placed on a control before any inspector properties were defined.. then that instance seems to need to be deleted and an new one added such that that property is shown in the inspector.

Things you set in the inspector behavior get set As the default when the control is dragged onto a layout. Not after.

2 Likes

I’m wondering if there is a way to force all instances in the project to update…
Feels like you should never modify a control once its used.

Everything is done through this mechanism. If the ide didn’t let you change the values, you would not be able to move or resize a control.