Select to view content in your preferred language

Dont Show Map in online and offline in Quest

479
0
11-28-2023 05:45 AM
hamedsetorg
Emerging Contributor

My unity Project is work in Game and Scene map but when i build it for android and install on quest 2 it dose not show map (base and elevation).

this is my code for handle offline data ,I copy 2 tpk file in location :

if (Application.platform == RuntimePlatform.Android)
{
var basemap = new Esri.GameEngine.Map.ArcGISBasemap(Application.persistentDataPath + "/world.tpk", APIKey);
var Elevation = new Esri.GameEngine.Map.ArcGISMapElevation(new Esri.GameEngine.Elevation.ArcGISImageElevationSource(Application.persistentDataPath + "/ShirazDem.tpk", "Terrain 3D", ""));
arcGISMapComponent.View.Map.Basemap = basemap;
arcGISMapComponent.View.Map.Elevation = Elevation;
}

Tags (4)
0 Kudos
0 Replies