Select to view content in your preferred language

Help adding integrated mesh layer to third person sample

720
2
07-27-2023 05:46 AM
FrancisPolignano
Emerging Contributor
I'm trying to add my own integrated mesh layer to the Unity Third person sample -

https://github.com/Esri/arcgis-maps-sdk-unity-samples/tree/main/samples_project/Assets/SampleViewer/...

I'm able to get the third person sample working. However, when I try to add my own Integrated mesh layer, I'm able to zoom to the layer (from the Map creator), but I'm not having any success in getting the character to drop down onto the layer. 

I'm trying to update the ArcGIS Location component in the ArcGIS Map ==> ArcGIS Camera with the coordinates of my layer, but it keeps snapping back to its default property. I also tried updating the ArcGIS Map Origin position.
 
I added a video of the issue I'm having. Any help is greatly appreciated! Thanks
Here is the same video on Youtube - https://youtu.be/1UybANzD3cM

Here is the SLPK I was using but hosted on ArcGIS Online - https://tiles.arcgis.com/tiles/DiBA3mdTgOcn1US9/arcgis/rest/services/3d_scott_3d_mesh/SceneServer

Thanks in advance!
0 Kudos
2 Replies
and1
by Esri Contributor
Esri Contributor

Hi, thanks for providing the video! It's really helpful to see all the details.

Besides updating the origin position (that you did), all you have to do is to update the player's position to bring the player to the coordinates that you want. The camera will just follow the player to the new location.

To do that, you can expand the ArcGISMap game object, then find the player game object which is named "PlayerAmature". Now go to the inspector, scroll all the way down, you will find ArcGIS Location Component. Change the coordinates and you should be good to go.

(click the pic below to expand)

and1_0-1690478505085.png

 

FrancisPolignano
Emerging Contributor

That fixed it! Thank you!! This is very cool

0 Kudos