How to add buildings layer in Unreal Engine 5

536
2
09-13-2022 05:52 AM
JakeUpfront
New Contributor

Can someone be so kind as to show me how I can add a buildings layer to my basemap in Unreal? I read the SDK and did the sample NYC project.  But I cannot bring buildings into my map. It would be great to have some easy to follow instructions on such a basic topic. 

Can someone please helkp me with this? Im sure its very easy if you know how.

Thank you!

Tags (2)
2 Replies
sjones_esriau
Esri Contributor

Hi,

Take a look at the layers topic in the documentation and the sample it refers too.

https://developers.arcgis.com/unreal-engine/layers/

For example, here's the unity version in C# (that I'm more familiar with)

		var arcGISMap = new Esri.GameEngine.Map.ArcGISMap(arcGISMapComponent.MapType);

		// Set the Basemap
		arcGISMap.Basemap = Esri.GameEngine.Map.ArcGISBasemap.CreateImagery(APIKey);

		// Create the Elevation
		arcGISMap.Elevation = new Esri.GameEngine.Map.ArcGISMapElevation(new Esri.GameEngine.Elevation.ArcGISImageElevationSource("https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer", "Elevation", ""));

		// Create ArcGIS layers and add them to the map
		var layer_3 = new Esri.GameEngine.Layers.ArcGISImageLayer("https://tiles.arcgis.com/tiles/4yjifSiIG17X0gW4/arcgis/rest/services/NewYorkCity_PopDensity/MapServer", "MyLayer_3", 1.0f, true, "");
		arcGISMap.Layers.Add(layer_3);

		var buildingLayer = new Esri.GameEngine.Layers.ArcGIS3DObjectSceneLayer("https://tiles.arcgis.com/tiles/P3ePLMYs2RVChkJx/arcgis/rest/services/Buildings_NewYork_17/SceneServer", "Building Layer", 1.0f, true, "");
		arcGISMap.Layers.Add(buildingLayer);

 

What trouble are you having?

0 Kudos
MounikaNamani
New Contributor

Have you done this? Could you please let me know how you did?

0 Kudos