- Home /
Question by
DaveFalco · Mar 15, 2021 at 11:49 PM ·
transformtransform.positioninversetransformpoint
rectTransform.InverseTransformPoint(rectTransform.position) is non-zero?
Debug.LogError(scrollRect.content.InverseTransformPoint(scrollRect.content.position));
I don't understand how this is not Vector3.zero. How can something's local position not be zero compared to itself? What am I missing?
If you're wondering why I would want to do this, the argument is not always the same transform. But this specific case confuses me.
Comment