Topic: Tileset HitTest error when camera outside frustum.
Hi Alex,
I have a Map Camera which slides in from the side of the device. I use a Tileset control in my AR App, and map not visible to the AR camera via the culling. So while the Map Camera is out-of-view, I get the following errors:
Screen position out of view frustum (screen pos 0.000000, 0.000000) (Camera rect 0 0 0 1024)
UnityEngine.Camera:ScreenPointToRay (UnityEngine.Vector3)
OnlineMapsTileSetControl:HitTest
I'm curious what is the best way to tackling having the map slide-in/out without getting the errors? My thought was to disable the map renderer, till the Display Map Button is clicked. Then, turn on renderer AND start camera slide into view. I do think there is a possibility of a few errors each time however, due to the renderer being enabled slightly before camera rect is updated.
What do you think?
EDIT: Maybe it would be better to switch between Main-Camera and Map camera (and back again) based on if the Display Map Button is clicked.
Thanks.