Problem translating world space UI Canvas
Hi, My canvas get strange effects when translated, looks like two canvas ontop och eachother and one lags behind the first. Like this
I attach the canvas like this to the controller
currentMenuOwner = hand;
currentMenu = Instantiate (MenuPrefab);
currentMenu.transform.SetParent (currentMenuOwner.transform);
I then move it like this from Update
currentMenu.transform.position = currentMenuOwner.transform.position;
currentMenu.transform.rotation = currentMenuOwner.transform.rotation;
currentMenu.transform.localPosition = new Vector3 (0, 0, 0.16f);
currentMenu.transform.localRotation = Quaternion.Euler (90, 0, 0);
Strange, updated from 5.3.4 to 5.3.5 and now it works as it should
That was probably a bug and the update fixed it.
Answer by travelhawk · Mar 07, 2017 at 03:49 PM
I do have the same problem using Unity 5.4.2. I instantiate the UI and move it close to a wall. The UI has strange behaviours. Sometimes it just disappears. It seems that it is associated with the angle and the camera distance. Does anyone have an idea?
Your answer
![](https://koobas.hobune.stream/wayback/20220612081833im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
OnPointerEnter blocked by something 2 Answers
EventSystem raycasting on World Canvas gameobject always returning worldPosition of zero 2 Answers
Possible for 10 canvas in 1 scene? 1 Answer
Dark UI canvas isssue 0 Answers
Need Rect Transform Movement Tips 2 Answers