- Home /
How to make Canvas follow CameraRig [VR - HTC VIVE]
Hello,
I want to see a panel in front of me after teleporting myself. I tried EulerAngle, position and rotation but no solution. The panel change his position but it still behind me when I teleport myself.
Vector3 position_camera = GameObject.Find("[CameraRig]/Camera (eye)").transform.position;
position_camera.z += 4;
position_camera.y += 1;
Canvas_changement_dimensions.SetActive(true);
//////////////// TEST ////////////
Canvas_changement_dimensions.transform.position = position_camera;
I did the same with rotation and eulerAngle .. Thank you for your help !
Comment
Your answer
Follow this Question
Related Questions
Make object appear within camera view 0 Answers
Freeze object's position and rotation 2 Answers
how to set rotation / position of an object on trigger? 2 Answers
Return object to position 3 Answers
Move object A towards object B 2 Answers