- Home /
Camera View Problem
Hello guys, I am working on a project where I am spawning things by typing something such as if the user types "There is a camel" then a camel would be spawned and I am using a camera script which is responsible to change the camera position so that the newly spawned object is in the camera view. Everything works fine over here but I am having a problem in the case of multiple objects at the same time, let's say the user types "There are five camels" then the camera view will be set to the last one and in this case, I can only "N" numbers of camels not all of them. I tried to use IsMeshVisible so that I can get a count of the number of objects outside of the camera view but that is not working as whenever a small part of the mesh is visible by the camera then it is returning true. So right now I am out of options and looking forward to some suggestions from the Unity Community. Thanks