Hello, first of all: Thank you @jderrough and everyone else who contributed for this project! I had trouble getting an offline map to work on the HoloLens, but this project solved it for me. Though I do not like the way it handles the zoom based on camera distance/frustum, but thanks to a different issue here I was able to still make it work with my project by using a seperate camera render texture.
Anyway, When I tried to implement the project (Only using MBtiles and no online layers) in my existing project (using Unity 2019.4.18f1) the editor took a very long time after hitting play until finally it started with a stack overflow error and no visible tiles. After 2 days of researching I found out that the problem was in the Physics settings. The "Auto Sync Transforms" checkbox has to be checked. Apparently it was checked in older Unity versions by default, but it is not checked anymore in newer Unity versions.
I still have no idea why it causes this problem, but I hope by writing this I can help someone in the future. And I also hope that the problem was not caused by any changes I made to this implementation, otherwise this issue would be invalid
Hello, first of all: Thank you @jderrough and everyone else who contributed for this project! I had trouble getting an offline map to work on the HoloLens, but this project solved it for me. Though I do not like the way it handles the zoom based on camera distance/frustum, but thanks to a different issue here I was able to still make it work with my project by using a seperate camera render texture.
Anyway, When I tried to implement the project (Only using MBtiles and no online layers) in my existing project (using Unity 2019.4.18f1) the editor took a very long time after hitting play until finally it started with a stack overflow error and no visible tiles. After 2 days of researching I found out that the problem was in the Physics settings. The "Auto Sync Transforms" checkbox has to be checked. Apparently it was checked in older Unity versions by default, but it is not checked anymore in newer Unity versions.
I still have no idea why it causes this problem, but I hope by writing this I can help someone in the future. And I also hope that the problem was not caused by any changes I made to this implementation, otherwise this issue would be invalid