Select to view content in your preferred language

Change data layer's position with ArcGIS maps SDK for Unity plug-in

528
1
12-04-2023 01:21 PM
IanDong
New Contributor

Hi all,

I've been working with local .slpk files exported from ArcGIS Pro using a C# script. And below is what I have got: 

IanDong_1-1701722251724.png

The scene only has 1 data layer, which is an ArcGIS3DObjectSceneLayer indicated by the orange blocks. I am wondering if there is a way to control the position of that single data layer through either the C# script or the Unity engine. For example. is it possible to move those orange blocks up and down relative to the basemap instead of moving the whole scene (basemap + data layer) together? 

From the link below, it seems that an ArcGIS3DObjectSceneLayer object has only 2 properties: FeatureFilter and MaterialReference and we can only control the visibility and opacity when constructing it.

https://developers.arcgis.com/unity/api-reference/gameengine/layers/arcgis3dobjectscenelayer/ 

Any hints on this subject matter would be highly appreciated.

Thanks and best regards,

Ian D. 

 

 

0 Kudos
1 Reply
ChrisAnderson7
Emerging Contributor
Take a look at the samples. Particularly, the one that places stadiums in the scene. You're basically adjusting the features elevation offset.
0 Kudos