<?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: Get attribute information from feature in ArcGIS Maps SDK for Unity Questions</title>
    <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/get-attribute-information-from-feature/m-p/1536888#M978</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;From my understanding it is possible but you would need your 3DObjectSceneLayer (or whatever layer type you are using) to also have a feature layer accompanying it. You would then need to query the feature layer similar to how the Feature Layer Sample or Weather Query Sample work in order to access more information.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This is something we plan to work on in the future as a public sample but unfortunately have not had enough time.&lt;/P&gt;&lt;P&gt;Please let me know if you have any other questions.&lt;/P&gt;&lt;P&gt;Mason&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Sep 2024 15:32:42 GMT</pubDate>
    <dc:creator>MasonGaw</dc:creator>
    <dc:date>2024-09-10T15:32:42Z</dc:date>
    <item>
      <title>Get attribute information from feature</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/get-attribute-information-from-feature/m-p/1536821#M976</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I hope someone can help me with this.&lt;/P&gt;&lt;P&gt;I'm a beginner, but I managed to retrieve the object ID using a raycast from an ArcGIS3DObjectSceneLayer. See script below.&lt;/P&gt;&lt;P&gt;But is it possible to use this featureid/objectid attribute to request information about the feature and display it in a .text? For example the Name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;RaycastHit hit;

if (Physics.Raycast(ray, out hit))
{
var arcGISRaycastHit = arcGISMapComponent.GetArcGISRaycastHit(hit);
var layer = arcGISRaycastHit.layer;
var featureId = arcGISRaycastHit.featureId;

if (layer != null &amp;amp;&amp;amp; featureId != -1)
{
featureText.text = featureId.ToString();

}
}
}
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 13:56:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/get-attribute-information-from-feature/m-p/1536821#M976</guid>
      <dc:creator>WH1981</dc:creator>
      <dc:date>2024-09-10T13:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Get attribute information from feature</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/get-attribute-information-from-feature/m-p/1536888#M978</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;From my understanding it is possible but you would need your 3DObjectSceneLayer (or whatever layer type you are using) to also have a feature layer accompanying it. You would then need to query the feature layer similar to how the Feature Layer Sample or Weather Query Sample work in order to access more information.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This is something we plan to work on in the future as a public sample but unfortunately have not had enough time.&lt;/P&gt;&lt;P&gt;Please let me know if you have any other questions.&lt;/P&gt;&lt;P&gt;Mason&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 15:32:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/get-attribute-information-from-feature/m-p/1536888#M978</guid>
      <dc:creator>MasonGaw</dc:creator>
      <dc:date>2024-09-10T15:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get attribute information from feature</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/get-attribute-information-from-feature/m-p/1540856#M984</link>
      <description>&lt;P&gt;Thanks for your answer..&lt;/P&gt;&lt;P&gt;It works now using a UnityWebRequest on the FeatureLayer with the FeatureID.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2024 12:12:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/get-attribute-information-from-feature/m-p/1540856#M984</guid>
      <dc:creator>WH1981</dc:creator>
      <dc:date>2024-09-20T12:12:43Z</dc:date>
    </item>
  </channel>
</rss>

