- Home /
Question by
rohjw17 · Sep 25, 2020 at 02:32 PM ·
c#uirotate objectscreenspacerotatetowards
How to make UI screen space image to look at game object in world space
I am working on a 2D game and I want to create a speech bubble that points toward a gameobject.
The red rectangle is a UI image inside a Canvas set to Screen Space. I want to rotate this object so it points toward a target object that I have in world space. I've seen tutorials on how to set world space game object to look at screen space object such as mouse position, but somehow I can't get it to work the other way around.
캡처.png
(13.0 kB)
Comment