- Home /
Question by
rohjw17 · Sep 29, 2020 at 10:57 AM ·
c#uicanvasrotate objectscreenspace
How to make UI image in screen space look at a gameobject 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
Your answer
Follow this Question
Related Questions
How to make UI screen space image to look at game object in world space 0 Answers
Unity UI Position 2 Answers
Object Instantiate Image to Canvas, Object destroy, Image destroy? 1 Answer
Unity UI World Canvas Scale Reason 0 Answers
UI Buttons visible but not clickable when using two canvases. 3 Answers