- Home /
Question by
si0ty · Apr 06, 2020 at 06:14 AM ·
transform.position
Set Vector3 on camera/canvas space?
Hey guys I'm on the way so I can't provide any code samples but this question bothers me.
So I created a list of Vector3 which represent points in world space. Then I Instantiate game objects which should slide into these positions in a row just like a queue.
I learned about camera.main.WorldToScreenPoint but can't figure out how to set this up. Does my Vectors have to be created in screen space? Because when I set the transform of the new instantiated game object to camera it follows but always heads back to the set up target position the specific slot in queue.
So how do I setup an Vector3 represent canvas space and follow if I move the camera?
Thanks for any reply guys!!
Comment