HolographicButton - Rotation Property?

Final Answer:
Access the button’s mesh, then access the mesh’s rotation. Set the mesh’s rotation vector to affect rotation of the button.


Originial Post:
So, I have successfully manipulated the position of some holographic buttons on a 3D control-panel. However, I also need to manipulate the rotation of these holographic buttons. Unfortunately, the holographic button and its parent classes do not have a rotation property,

My question is:
How might I rotate holographic buttons without access to a rotation property?

Possible Answer:
Access the button’s mesh, then the mesh’s rotation property?

Hi @MatthewMill

The rotation is not directly accessible byt the button but you can retrieve the TransformNode with

https://doc.babylonjs.com/api/classes/babylon.gui.control3d#node

Then, you should be able to rotate it.

2 Likes