Hello everyone,
I want to have a length of polygon lines in the middle of each line, I wanted to take the middle point between two vertices and then use moveToVector3 to link GUI text with this middle point. I got an error that says Cannot move a control to a vector3 if the control is not at root level
. and I really don’t know how to make this control root level. I didn’t found any example.
here’s the playground: https://playground.babylonjs.com/#QNJLCY#21
lines 84 and 266 is the problem.
Also, I was thinking about making a little spheres in the middle of lines and then link GUI text to it and that would solve the issue. But maybe there’s better solution.