Skip to content

Get the identify results for individual/multiple buildings in a scene.

Image of Identify

How to use the sample (SampleViewer)

  1. The SampleViewer Scene should open by default, if it is not open, click the SampleViewer scene to open it.
  2. Click play.
  3. Using the UI, enter an API key in the input field to the top left.
  4. Open the Samples drop down, and click Identify to open the level.
  5. While holding shift, click a building. The building's identify results will populate the table.

How to use the sample (Identify Scene)

  1. Open the Identify scene.
  2. Click on the ArcGISMap GameObject and set your API key in the Inspector window.
  3. Click play.
  4. While holding shift, click a building. The building's Identify Results will populate the table.

How it works

  1. Create an ArcGIS Map.
  2. Attach an ArcGIS Camera component to the active camera.
  3. Create a new Gameobject and call it SampleArcGISRaycast.
  4. Attach the ArcGISRaycast script to the SampleArcGISRaycast GameObject.
  5. Enter your APIKey in the APIMapCreator.
  6. Hit play. Once the scene is running hold shift and click a building. The building's Identify Results will populate the table.

About the data

Building models for New York are loaded from a 3D object scene layer hosted by Esri.

Elevation data is loaded from the Terrain 3D elevation layer hosted by Esri.

Tags

identify, raycast

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.