Control.linkWithMesh breaks when AdvancedDynamicTexture.renderScale is not 1

Hello! I’m using v5.0.0-alpha.44 and trying to link a text box to a mesh, but the text box moves towards the top left of the screen whenever I lower the render scale of the AdvancedDynamicTexture.

Here’s the bug reproduced in the playground. Interestingly, the same playground running v4.2.0 seems to work just fine. I’m planning to calculate the correct position for the label in onBeforeDrawObservable instead, but if there’s a simpler solution I would appreciate it!

pinging @msDestiny14

1 Like

Yep I will take a look into this. Thank you for finding a good repro.

1 Like

Looks like we were doing double the calculations. :wink:
Here is the PR with the fix. :slight_smile: Stay tuned.

1 Like