Topic: Deactivate the markers outside the field of view ?
Imagine a map with for instance 400 markers all around the camera, each marker with a "look at camera" script, so it is always facing the camera.
If the camera FOV is 90°, only 1/4 of the markers (about one hundred) are displayed in the game view, but the 300 others, not in the field of view, continue to follow the camera position. Would it be interesting, in terms of performance, to deactivate the "look at camera" for the markers that are not displayed, and even the markers themselves ?
Is there a way to know the number of markers which are in the camera field, to make an action (for instance recenter the camera) if no marker is visible.
Best regards, Phil