- Home /
Question by
power_champ · Nov 03, 2020 at 11:39 PM ·
canvasorthographic camera
How to get world canvas to face orthographic camera correctly?
Hi there.
How would I get a world canvas attached to a game object to face an orthographic camera correctly?
Currently I have a script attached to the game object's canvas.
void Update()
{
transform.rotation = Camera.main.transform.rotation;
}
It almost works (facing the camera slightly off) but I am clearly missing something.
Any help appreciated.
Comment
Weird, you wouldn't need to do any rotation adjustments, since the camera is orthographic.
Your answer
Follow this Question
Related Questions
How change the camera orthographic size to the UI image top position? 1 Answer
Best way to assign and work with Canvas 1 Answer
Simple tile-map drawing to a simple canvas (using Unity GUI) 1 Answer
How can I select a UI element with a raycast from another UI element? 2 Answers
Unity UI Position 2 Answers