How can i make an object spawn on different locations,only where the cameras i looking,im working on a 2D game.
Is your camera orthographic? If so, there’s a discussion of calculating the bounds in world space at: Calculating 2D camera bounds - Questions & Answers - Unity Discussions