© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
15 replies
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);
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
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Properties referencing their class
C#CC# / help
12mo ago
✅ Importance of getters and setters
C#CC# / help
5mo ago
are my getters and setters correct?
C#CC# / help
3y ago
Need help with AspNetCore and GUID.
C#CC# / help
17mo ago