V2 -> v3 again... (convertToNodeSpaceAR)

convertToNodeSpaceAR

According to the new API docs it is not on node anymore but on UITransform.
(was: this.node.convertToNodeSpaceAR() )

But somehow I can’t get it… How do I get access to it?

(Also it is now a Vec3 instead of a Vec2?)

solved it already.
It is on UITransform indeed, just needed to get the component.

So:
const uiTransform = this.node.getComponent(UITransform);
and then you can get
uiTransform.convertToNodeSpaceAR()
but needs to be a Vec3.

2 Likes

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.