Select to view content in your preferred language

Select custom attribute with Get Arc GISRaycast Hit

400
2
10-14-2022 07:54 PM
JulianCrespi
New Contributor

Hello,

I'm using the setup from the ArcGISHitTestSample level, it works in my scene, with the default Feature Id attribute:

JulianCrespi_1-1665801572991.png

I would like to customize the ArcGISRaycast Hit structure to be able to add other attributes instead of Feature ID:

JulianCrespi_2-1665801683680.png

For example I would like to query my 3D Scene Layers to get custom attribute properties, like Building_Type:

JulianCrespi_0-1665801376495.png

I understand this could be done editing that function through C++, perhaps with this line:

JulianCrespi_3-1665802054000.png

But my C++ is way too rudimentary to really find my way through that code. 

I've managed to come a long way through blueprints alone, like applying different materials to specific layers: 

JulianCrespi_4-1665802286144.png

It would be great to access all the rich data I have from my 3D Object Scene Layers but I'm stuck at this stage. Any help would be greatly appreciated!

0 Kudos
2 Replies
Matt_Nelson
Esri Alum

What dataset are you using? Is there a FeatureService backing the 3d object layer?

0 Kudos
Matt_Nelson
Esri Alum

If you are able to share the dataset I can tell you. 

0 Kudos