- Home /
Question by
ChickChuck2Team · Apr 18 at 03:10 PM ·
camera2d gameviewport
Unity2D Action when object close to Camera
I'm looking for a way to perform an action when there's an object close to the camera, but I have no idea what to use to calculate the distance from the viewport camera to the specific object. I've done a search, but haven't found anything related.
screenshot-1.png
(25.0 kB)
Comment
Your answer

Follow this Question
Related Questions
How to force the game to be stretched to fit the screen? 1 Answer
Camera Z Position moves to Zero, when a Rigidbody2D is added to a gameobject 0 Answers
i need help about players hands positions in 2D multiplayer card game 0 Answers
What is the best way to use the bounds of the camera in-world effectively? 1 Answer