Follow

If you have a @unity3@twitter.com GameObject obj, then obj.transform is [another reference to] the Transform object. Within that, though, position is a struct property, so obj.transform.position gets you a COPY of the position. You must modify your copy, then obj.transform.position = copy.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.