<?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 create game object dynamically in ArcGIS Maps SDK for Unity Questions</title>
    <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/create-game-object-dynamically/m-p/1281900#M499</link>
    <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had an unity project in which i create some models dynamically, but after I insert map into the project, I can't found the gameobject created by me, anyone can tell me why?&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;jeff&lt;/P&gt;</description>
    <pubDate>Mon, 24 Apr 2023 16:15:04 GMT</pubDate>
    <dc:creator>文言李</dc:creator>
    <dc:date>2023-04-24T16:15:04Z</dc:date>
    <item>
      <title>create game object dynamically</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/create-game-object-dynamically/m-p/1281900#M499</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had an unity project in which i create some models dynamically, but after I insert map into the project, I can't found the gameobject created by me, anyone can tell me why?&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;jeff&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 16:15:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/create-game-object-dynamically/m-p/1281900#M499</guid>
      <dc:creator>文言李</dc:creator>
      <dc:date>2023-04-24T16:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: create game object dynamically</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/create-game-object-dynamically/m-p/1282145#M501</link>
      <description>&lt;P&gt;Hi, I'm thinking of two possibilities:&lt;/P&gt;&lt;P&gt;1. the game object is not a child of the arcgismap object, then the camera doesn't show it.&lt;/P&gt;&lt;P&gt;2. the game object location doesn't have an arcgis location component or is position is far away the origin and extends of the map&lt;/P&gt;&lt;P&gt;I hope it helps!&lt;/P&gt;&lt;P&gt;mbd&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 21:47:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/create-game-object-dynamically/m-p/1282145#M501</guid>
      <dc:creator>mbd</dc:creator>
      <dc:date>2023-04-24T21:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: create game object dynamically</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/create-game-object-dynamically/m-p/1282182#M502</link>
      <description>&lt;P&gt;Thank you mbd, it's really helpful.&lt;/P&gt;&lt;P&gt;But are all the game objects in arcgismap project be children of arcgismap?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 04:04:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/create-game-object-dynamically/m-p/1282182#M502</guid>
      <dc:creator>文言李</dc:creator>
      <dc:date>2023-04-25T04:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: create game object dynamically</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/create-game-object-dynamically/m-p/1282201#M503</link>
      <description>&lt;P&gt;I paste my code here as follows,&lt;/P&gt;&lt;P&gt;public void OnCreateCubeButtonClicked()&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Instantiate(myCube, new Vector3(0, 0, 0), Quaternion.identity);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;GameObject arcgixMap = GameObject.Find("ArcGISMap");&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if (arcgixMap != null)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; myCube.transform.parent = arcgixMap.transform;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; HPTransform hpTransform = myCube.GetComponent&amp;lt;HPTransform&amp;gt;();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if (hpTransform != null)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hpTransform.LocalPosition = new Unity.Mathematics.double3(-2871978.3959205807,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4132157.7468104535, -4529007.4551753243);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hpTransform.LocalScale = new Unity.Mathematics.float3(100000, 100000, 100000);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Anything wrong?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 06:23:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/create-game-object-dynamically/m-p/1282201#M503</guid>
      <dc:creator>文言李</dc:creator>
      <dc:date>2023-04-25T06:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: create game object dynamically</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/create-game-object-dynamically/m-p/1283086#M509</link>
      <description>&lt;P&gt;You didn't add the location component to your go.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 21:24:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/create-game-object-dynamically/m-p/1283086#M509</guid>
      <dc:creator>Jade</dc:creator>
      <dc:date>2023-04-26T21:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: create game object dynamically</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/create-game-object-dynamically/m-p/1284143#M516</link>
      <description>&lt;P&gt;No, I didn't add component HPTransform, because myCube is a prefab, and I've added the HPTransform component in the inspector.&lt;/P&gt;&lt;P&gt;Another problem is I set the position of hpTransform like this,&amp;nbsp;&lt;/P&gt;&lt;P&gt;hpTransform.LocalPosition = new Unity.Mathematics.double3(-4451191.8873, 6562076.953, 1046025.930);&lt;/P&gt;&lt;P&gt;button when playing, the position of hpTransform is (6378137, 0, 0)&lt;/P&gt;&lt;P&gt;Any clue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;</description>
      <pubDate>Sat, 29 Apr 2023 15:50:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/create-game-object-dynamically/m-p/1284143#M516</guid>
      <dc:creator>文言李</dc:creator>
      <dc:date>2023-04-29T15:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: create game object dynamically</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/create-game-object-dynamically/m-p/1378041#M770</link>
      <description>&lt;P&gt;嘿！哥们，我搞定了！需要你的Game object在ArcGISMap的层级下面，Game object需要添加两个组件HPTransform、ArcGIS Location。可以通过ArcGIS Location组件修改经纬度。&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 06:59:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/create-game-object-dynamically/m-p/1378041#M770</guid>
      <dc:creator>WeiPin</dc:creator>
      <dc:date>2024-02-05T06:59:53Z</dc:date>
    </item>
  </channel>
</rss>

