I'm sure the question is already out there but I cannot find it, sorry.
I'm trying to sync a Serialized field of an object with other of its components.
let's say I have a field "size" which should impact the object transform scale:
[SerializeField]
int _size;
I'm looking for an event handler or something that allow me to do:
void onSerializedPropertyChange() {
transform.localScale = new Vector3(_size,_size,_size);
}
Does a method like that exists ?
In the end the idea would be to work with more than one property and to tweak object properties while preview the result.