<?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: Local .slpk file is not loading into scene in ArcGIS Maps SDK for Unity Questions</title>
    <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/local-slpk-file-is-not-loading-into-scene/m-p/1524476#M941</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/702096"&gt;@MasonGaw&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Aug 2024 16:02:08 GMT</pubDate>
    <dc:creator>NickGuzi</dc:creator>
    <dc:date>2024-08-20T16:02:08Z</dc:date>
    <item>
      <title>Local .slpk file is not loading into scene</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/local-slpk-file-is-not-loading-into-scene/m-p/1524065#M934</link>
      <description>&lt;P&gt;Hello! I recently created a project in which I added an integrated mesh layer through a URL for a scene and it worked just fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recently started a new project and am attempting to use a local .slpk file I have but the layer is not loading into the scene for some reason? Is it possible to add a local .slpk layer to a scene/is it recommended? Or is it always better to use a URL?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am positive I have the correct coordinates for my location, and I know it isn't a project issue as I tested with the integrated mesh layer URL I had used on my previous project and that loaded into this new project scene just fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The local .slpk file is either a 3DObject Scene Layer or a Building Scene layer. I can't remember which at the moment but I did test with both configurations on the UI and neither loaded in.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you have any follow up questions or need images sent over from my project.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;- Nick&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 21:31:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/local-slpk-file-is-not-loading-into-scene/m-p/1524065#M934</guid>
      <dc:creator>NickGuzi</dc:creator>
      <dc:date>2024-08-19T21:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Local .slpk file is not loading into scene</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/local-slpk-file-is-not-loading-into-scene/m-p/1524072#M935</link>
      <description>&lt;P&gt;^ I forgot to add that the .slpk is housed within the Assets folder currently. I am referencing it with a direct file path not a relative file path.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 21:34:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/local-slpk-file-is-not-loading-into-scene/m-p/1524072#M935</guid>
      <dc:creator>NickGuzi</dc:creator>
      <dc:date>2024-08-19T21:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Local .slpk file is not loading into scene</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/local-slpk-file-is-not-loading-into-scene/m-p/1524095#M936</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are going to be loading an .slpk, we do not recommend keeping it within your project. This can cause issues with the path when making a build. If you plan to package/build your project for use on multiple devices, we recommend finding your platforms "Application.persistentdatapath", placing the .slpk there, and loading it via a C# script in the Start method. Attached is the script, please modify to fit your needs.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If you wish to not use a script, please consider placing the .slpk in a location on your computer such as Downloads, Desktop, or Documents and using the path.&amp;nbsp;&lt;BR /&gt;Please let me know if you have any other questions or issues.&lt;/P&gt;&lt;P&gt;Mason&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 22:09:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/local-slpk-file-is-not-loading-into-scene/m-p/1524095#M936</guid>
      <dc:creator>MasonGaw</dc:creator>
      <dc:date>2024-08-19T22:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Local .slpk file is not loading into scene</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/local-slpk-file-is-not-loading-into-scene/m-p/1524443#M939</link>
      <description>&lt;P&gt;Sounds good I'll try it out, thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 15:41:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/local-slpk-file-is-not-loading-into-scene/m-p/1524443#M939</guid>
      <dc:creator>NickGuzi</dc:creator>
      <dc:date>2024-08-20T15:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Local .slpk file is not loading into scene</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/local-slpk-file-is-not-loading-into-scene/m-p/1524475#M940</link>
      <description>&lt;P&gt;I just realized I left out one key ingredient. I am trying to build my game into a WebGL platform. How would that affect this process? Is it possible to use a local .slpk within a WebGL game? In fact is it recommended/possible to use the SDK and build into a WebGL platform in general?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 16:01:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/local-slpk-file-is-not-loading-into-scene/m-p/1524475#M940</guid>
      <dc:creator>NickGuzi</dc:creator>
      <dc:date>2024-08-20T16:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Local .slpk file is not loading into scene</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/local-slpk-file-is-not-loading-into-scene/m-p/1524476#M941</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/702096"&gt;@MasonGaw&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 16:02:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/local-slpk-file-is-not-loading-into-scene/m-p/1524476#M941</guid>
      <dc:creator>NickGuzi</dc:creator>
      <dc:date>2024-08-20T16:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Local .slpk file is not loading into scene</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/local-slpk-file-is-not-loading-into-scene/m-p/1525181#M943</link>
      <description>&lt;P&gt;Unfortunately, we do not support WebGL at this time. We apologize for the inconvenience.&lt;BR /&gt;Mason&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 15:52:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/local-slpk-file-is-not-loading-into-scene/m-p/1525181#M943</guid>
      <dc:creator>MasonGaw</dc:creator>
      <dc:date>2024-08-21T15:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Local .slpk file is not loading into scene</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/local-slpk-file-is-not-loading-into-scene/m-p/1525228#M944</link>
      <description>&lt;P&gt;Ah I see, thank you! So WebGL isn't supported in any capacity by the SDK? Or is it only not supported if trying to use a local .slpk file?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 16:39:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/local-slpk-file-is-not-loading-into-scene/m-p/1525228#M944</guid>
      <dc:creator>NickGuzi</dc:creator>
      <dc:date>2024-08-21T16:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Local .slpk file is not loading into scene</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/local-slpk-file-is-not-loading-into-scene/m-p/1525941#M947</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/702096"&gt;@MasonGaw&lt;/a&gt;&amp;nbsp;so I took your advice and added my .slpk to the persistentdatapath. I then added the script to my Unity project (I changed the layer to an ArcGIS3DObjectSceneLayer within the Start() method). I added the script to my scene through an empty object below the ArcGISMap object. This is what it looks like:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NickGuzi_0-1724345189635.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/113264iC9A64F3537604E19/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NickGuzi_0-1724345189635.png" alt="NickGuzi_0-1724345189635.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NickGuzi_1-1724345205263.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/113265i81A4128B17B5A905/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NickGuzi_1-1724345205263.png" alt="NickGuzi_1-1724345205263.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, upon clicking play the layer is still not showing up. Is there something I am missing? Or do you think there's an actual issue with my .slpk? My persistentdatapath is as follows:&amp;nbsp;&lt;SPAN class=""&gt;C&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;\&lt;SPAN class=""&gt;Users&lt;/SPAN&gt;&lt;SPAN class=""&gt;\[Username]&lt;/SPAN&gt;\&lt;SPAN class=""&gt;AppData&lt;/SPAN&gt;\&lt;SPAN class=""&gt;LocalLow&lt;/SPAN&gt;&lt;SPAN class=""&gt;\DefaultCompany&lt;/SPAN&gt;&lt;SPAN class=""&gt;\Project_Name&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 16:51:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/local-slpk-file-is-not-loading-into-scene/m-p/1525941#M947</guid>
      <dc:creator>NickGuzi</dc:creator>
      <dc:date>2024-08-22T16:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Local .slpk file is not loading into scene</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/local-slpk-file-is-not-loading-into-scene/m-p/1525952#M948</link>
      <description>&lt;P&gt;Can you please add the ArcGISViewStateLogging Component to your arcigs map component and send a picture of the console? Try loading it through script and try loading it how you were doing before and send the console so I can better help with debugging.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mason&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 17:14:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/local-slpk-file-is-not-loading-into-scene/m-p/1525952#M948</guid>
      <dc:creator>MasonGaw</dc:creator>
      <dc:date>2024-08-22T17:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Local .slpk file is not loading into scene</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/local-slpk-file-is-not-loading-into-scene/m-p/1526020#M949</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/702096"&gt;@MasonGaw&lt;/a&gt;&amp;nbsp;So a little update. The good news is that the .slpk is loading from a local path that points to my downloads folder. So there seems to be nothing wrong with the .slpk. However, I do want this project to be extensible and shareable.&lt;/P&gt;&lt;P&gt;Here is my console trying to load from the persistent data path:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NickGuzi_1-1724350240702.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/113273i41131D010C83DB96/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NickGuzi_1-1724350240702.png" alt="NickGuzi_1-1724350240702.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As you can see an error on line 22 of my script is being thrown:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Esri.ArcGISMapsSDK.Components;
using Esri.Unity;

public class LoadLayer : MonoBehaviour
{
    [SerializeField] private ArcGISMapComponent arcGISMapComponent;

    private void Awake()
    {
        arcGISMapComponent = GetComponent&amp;lt;ArcGISMapComponent&amp;gt;();
    }

    // Start is called before the first frame update
    void Start()
    {
        var buildingLayer = new Esri.GameEngine.Layers.ArcGIS3DObjectSceneLayer(
            Application.persistentDataPath + "/AlbanyBuildings.slpk",
            "Albany Layer", 1.0f, true, "");
        arcGISMapComponent.View.Map.Layers.Add(buildingLayer);
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 18:20:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/local-slpk-file-is-not-loading-into-scene/m-p/1526020#M949</guid>
      <dc:creator>NickGuzi</dc:creator>
      <dc:date>2024-08-22T18:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Local .slpk file is not loading into scene</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/local-slpk-file-is-not-loading-into-scene/m-p/1527825#M956</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/702096"&gt;@MasonGaw&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2024 13:01:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/local-slpk-file-is-not-loading-into-scene/m-p/1527825#M956</guid>
      <dc:creator>NickGuzi</dc:creator>
      <dc:date>2024-08-27T13:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Local .slpk file is not loading into scene</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/local-slpk-file-is-not-loading-into-scene/m-p/1528115#M959</link>
      <description>&lt;P&gt;For those who are concerned I just had to do some moderate tweaking to the script that Mason attached. I decided to use a tag to find the arcGISMapComponent housed within the ArcGISMap game object and it worked. I just named the tag "ArcGISMap" and assigned it to the ArcGISMap game object. Here is my updated script:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;private void Awake()
    {
        GameObject arcGISMap = GameObject.FindWithTag("ArcGISMap");
        if (arcGISMap != null)
        {
            arcGISMapComponent = arcGISMap.GetComponent&amp;lt;ArcGISMapComponent&amp;gt;();
            if (arcGISMapComponent == null)
            {
                Debug.LogError("ArcGISMapComponent is not found on the GameObject with tag 'ArcGISMap'.");
            }
        }
        else
        {
            Debug.LogError("No GameObject with tag 'ArcGISMap' found.");
        }
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the help Mason!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2024 18:44:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/local-slpk-file-is-not-loading-into-scene/m-p/1528115#M959</guid>
      <dc:creator>NickGuzi</dc:creator>
      <dc:date>2024-08-27T18:44:22Z</dc:date>
    </item>
  </channel>
</rss>

