Skip to content

Commit 171b386

Browse files
mmgaw113avr757
andauthored
Hit Test Redesign + new Input (#70)
* Hit Test Redesign + new Input * ReadME * Add image of variables * Address feedback * Address Feedback * Fix Image * Update readme.md Fix Image Again * Update sample_project/Content/SampleViewer/Samples/HitTest/readme.md Co-authored-by: Andy Ren <aren@esri.com> * Update sample_project/Content/SampleViewer/Samples/HitTest/readme.md Co-authored-by: Andy Ren <aren@esri.com> * Update sample_project/Content/SampleViewer/Samples/HitTest/readme.md Co-authored-by: Andy Ren <aren@esri.com> --------- Co-authored-by: Andy Ren <aren@esri.com>
1 parent 7e57d32 commit 171b386

File tree

11 files changed

+22
-15
lines changed

11 files changed

+22
-15
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
10.2 KB
Loading
Binary file not shown.
Binary file not shown.
Binary file not shown.

sample_project/Content/SampleViewer/Samples/HitTest/readme.md

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,42 @@
11
# Visualize 3DObject ID's
22

3-
Get the ID for individual buildings in a scene.
3+
Get the ID for individual buildings in a Level.
44

55
![Image of HitTest](HitTest.png)
66

77
## How to use the sample (SampleViewer)
88

9-
1. The SampleViewer Scene should open by default, if it is not open, click the **SampleViewer** scene to open it.
9+
1. The SampleViewer Level should open by default, if it is not open, click the **SampleViewer** Level to open it.
1010
2. Click play.
1111
3. Using the UI, enter an APIKey in the input field to the top left.
12-
4. Open the **Samples** drop down, and click **HitTest** to open the level.
12+
4. Open the **Samples** drop down, and click **HitTest** to open the Level.
1313
5. Click a building. The building's ID's will show up on a 3D UI Component.
1414

15-
## How to use the sample (HitTest Scene)
15+
## How to use the sample (HitTest Level)
1616

17-
1. Open the **HitTest** level.
17+
1. Open the **HitTest** Level.
1818
2. Click on the **ArcGISMap** Actor and set your API key in the **Details** panel.
1919
3. Click play.
2020
4. Click a building. The building's ID's will show up on a 3D UI Component.
2121

2222
## How it works
2323

2424
1. Create an ArcGIS Map.
25-
2. Add an **ArcGISPawn** to the scene.
26-
3. Within the Level Blueprint, create an Input mapping. Off the **Pressed** node, drag off and create a **Line Trace by Channel**.
27-
4. Drag off the Exec node, and create an **ArcGISRaycast Hit**.
28-
5. Break the **ArcGISRaycast Hit Result** and drag off the **FeatureID** node.
29-
6. Convert this integer to a string, and connect it to a print node.
30-
7. Enter your **APIKey** in the **APIMapCreator**.
31-
8. Hit play. Once the scene is running click a building. The building's ID's will show up in a debug on screen.
25+
2. Add an **ArcGISPawn** to the Level.
26+
3. Within the HitTest folder, drag the ArcGISRaycast Blueprint into the Level.
27+
4. In the UI folder within the HitTest folder, drag the bp_featureId Actor into the Level.
28+
5. Add a Sphere Static Mesh Actor into the Level and call it 'HitLocation'.
29+
6. In the Outliner panel, select the ArcGISRaycast Actor.
30+
7. Navigate to the Default sections in the Details Panel. For each variable shown in the image, click on the drop-down and add the respective Actor as its reference.
31+
32+
![Image of Variables](RaycastComponent.png)
33+
34+
8. Select the **ArcGISMap** Actor in the Outliner panel, and enter your **APIKey** in the Authentication section in the Details panel.
35+
9. Hit Play. Once the Level is running, hold Shift and click a building. The building's ID will show up in a debug on screen.
3236

3337
## About the data
3438

35-
Building models for New York are loaded from a [3D object scene layer](https://tiles.arcgis.com/tiles/z2tnIkrLQ2BRzr6P/arcgis/rest/services/New_York_LoD2_3D_Buildings/SceneServer/layers/0) hosted by Esri.
39+
Building models for New York are loaded from a [3D object Level layer](https://tiles.arcgis.com/tiles/z2tnIkrLQ2BRzr6P/arcgis/rest/services/New_York_LoD2_3D_Buildings/LevelServer/layers/0) hosted by Esri.
3640

3741
Elevation data is loaded from the [Terrain 3D elevation layer](https://www.arcgis.com/home/item.html?id=7029fb60158543ad845c7e1527af11e4) hosted by Esri.
3842

0 commit comments

Comments
 (0)