Question by
chevalierc · Jun 02, 2017 at 01:50 PM ·
camera2d
After getting center of screen, my onClick commands stop working
after grabbing the center of the screen using:
screenCenter = Camera.main.ScreenToWorldPoint(new Vector3(Screen.width / 2, Screen.height / 2, Camera.main.nearClipPlane));
my onClick events stop firing. How do I correct this?
Im in unity 2d btw.
Comment
Your answer
Follow this Question
Related Questions
Pixel jitter/flicker while camera movement (2D) 2 Answers
Camera Bounds in Complex Shape 1 Answer
Camera is making trail in moving objects 0 Answers
2D movement with gravity shifting 0 Answers
Camera border showing last drawn frame 0 Answers