C#C
C#4y ago
TheSnowOwl

need help with properties and their setters

i have a property for a transform that holds several values, including position. and i have a setter block to handle logic that if the positional values were to be moved, any child object should move accordingly with it. however when i call myObject.Transform.position = new Vector2(7, 2); it does not invoke the setter method of the gameobjects transform property.

any advice would be quite lovely. The setter method is not yet finished, but i got stuck with this.
image.png
Was this page helpful?