<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Adding 3D Buildings to Unity in ArcGIS Maps SDK for Unity Questions</title>
    <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/adding-3d-buildings-to-unity/m-p/1425225#M822</link>
    <description>&lt;P&gt;We just started to support OSM layers in &lt;A href="https://developers.arcgis.com/unreal-engine/release-notes/#openstreetmap-3d-buildings-layer-support" target="_self"&gt;version 1.5&lt;/A&gt;. Any versions earlier than that will not work. If you have 1.4 or below, you could update it to the latest version. The current release package can be found &lt;A href="https://developers.arcgis.com/unity/downloads/" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 09 May 2024 21:04:26 GMT</pubDate>
    <dc:creator>and1</dc:creator>
    <dc:date>2024-05-09T21:04:26Z</dc:date>
    <item>
      <title>Adding 3D Buildings to Unity</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/adding-3d-buildings-to-unity/m-p/1423603#M817</link>
      <description>&lt;P&gt;I am creating a map based experience in Unity. I want to add a 3D buildings layer to the map. It is a location based game, so I need there to be 3D buildings wherever a user is in the world. I found &lt;A href="https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Buildings_v1/SceneServer" target="_self"&gt;this scene layer&amp;nbsp;&lt;/A&gt;but I am getting errors when I add it to the layer like this&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;ArcGISBuildingSceneLayer &lt;/SPAN&gt;&lt;SPAN&gt;buildingSceneLayer &lt;/SPAN&gt;&lt;SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;new &lt;/SPAN&gt;&lt;SPAN&gt;ArcGISBuildingSceneLayer&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Buildings_v1/SceneServer"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;APIKey&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;map&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Layers&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Add&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;buildingSceneLayer&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;The error is 'invalid json'.&amp;nbsp;&lt;BR /&gt;Question 1: how do I add basic 3D buildings to the map wherever in the world a user is located?&lt;/P&gt;&lt;P&gt;Question 2: If I wanted to alter the appearance of these buildings (ie. make them shorter or make the top half of the buildings fade into the air (transparent)), how would I go about doing this?&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 16:59:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/adding-3d-buildings-to-unity/m-p/1423603#M817</guid>
      <dc:creator>AndrewMcLane</dc:creator>
      <dc:date>2024-05-09T16:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Adding 3D Buildings to Unity</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/adding-3d-buildings-to-unity/m-p/1424146#M819</link>
      <description>&lt;P&gt;It seems that is the incorrect layer type. Please make sure the layer type is a &lt;STRONG&gt;3DObjectSceneLayer &lt;/STRONG&gt;instead of a BuildingSceneLayer. And also be sure you are in &lt;STRONG&gt;Global&lt;/STRONG&gt; mode.&lt;/P&gt;&lt;P&gt;So it would be:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var buildingLayer = new Esri.GameEngine.Layers.ArcGIS3DObjectSceneLayer("https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Buildings_v1/SceneServer", "Building Layer", 1.0f, true, "");
map.Layers.Add(buildingLayer);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to make the building transparent as a whole, you can try the example below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;buildingLayer.Opacity = 0.5f;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I don't think you can alter the individual appearance/height of these buildings.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="and1_1-1715277765677.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/103632iBF861BA435BA0F7D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="and1_1-1715277765677.png" alt="and1_1-1715277765677.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 18:22:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/adding-3d-buildings-to-unity/m-p/1424146#M819</guid>
      <dc:creator>and1</dc:creator>
      <dc:date>2024-05-09T18:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Adding 3D Buildings to Unity</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/adding-3d-buildings-to-unity/m-p/1424235#M820</link>
      <description>&lt;P&gt;Thanks for responding,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/626082"&gt;@and1&lt;/a&gt;! I have altered my code to use the type you suggested and also changed the map type to global. I am getting a different error this time. It's&amp;nbsp;&lt;BR /&gt;"ArcGISLayerViewState Building Layer changed to : Error (Layer type is not supported.)&lt;BR /&gt;Additional info: Error processing service metadata response.&lt;BR /&gt;Unsupported scene layer version&lt;BR /&gt;UnityEngine.Debug:Log (object)"&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 18:31:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/adding-3d-buildings-to-unity/m-p/1424235#M820</guid>
      <dc:creator>AndrewMcLane</dc:creator>
      <dc:date>2024-05-09T18:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Adding 3D Buildings to Unity</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/adding-3d-buildings-to-unity/m-p/1424439#M821</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/566072"&gt;@AndrewMcLane&lt;/a&gt;&amp;nbsp;,&amp;nbsp;what version of the ArcGIS Maps SDK plugin are you currently using for this project?&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 19:14:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/adding-3d-buildings-to-unity/m-p/1424439#M821</guid>
      <dc:creator>and1</dc:creator>
      <dc:date>2024-05-09T19:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Adding 3D Buildings to Unity</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/adding-3d-buildings-to-unity/m-p/1425225#M822</link>
      <description>&lt;P&gt;We just started to support OSM layers in &lt;A href="https://developers.arcgis.com/unreal-engine/release-notes/#openstreetmap-3d-buildings-layer-support" target="_self"&gt;version 1.5&lt;/A&gt;. Any versions earlier than that will not work. If you have 1.4 or below, you could update it to the latest version. The current release package can be found &lt;A href="https://developers.arcgis.com/unity/downloads/" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 21:04:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/adding-3d-buildings-to-unity/m-p/1425225#M822</guid>
      <dc:creator>and1</dc:creator>
      <dc:date>2024-05-09T21:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Adding 3D Buildings to Unity</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/adding-3d-buildings-to-unity/m-p/1432899#M823</link>
      <description>&lt;P&gt;Yes! Thank you. This resolved it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 17:14:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/adding-3d-buildings-to-unity/m-p/1432899#M823</guid>
      <dc:creator>AndrewMcLane</dc:creator>
      <dc:date>2024-05-10T17:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Adding 3D Buildings to Unity</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/adding-3d-buildings-to-unity/m-p/1432905#M824</link>
      <description>&lt;P&gt;This is also part of the solution,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/626082"&gt;@and1&lt;/a&gt;&amp;nbsp;! Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 17:15:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/adding-3d-buildings-to-unity/m-p/1432905#M824</guid>
      <dc:creator>AndrewMcLane</dc:creator>
      <dc:date>2024-05-10T17:15:07Z</dc:date>
    </item>
  </channel>
</rss>

