Select to view content in your preferred language

Issue with MaterialReference in ArcGIS Maps SDK 2.3

88
0
Sunday
ws4945894
Emerging Contributor

Hi there...

I'm currently migrating Unity projects from ArcGIS Maps SDK for Unity 2.2 to version 2.3 and I ran into an issue.

There are some projects that rely on MaterialReference like in the code snippet below

zurichTreesLayer = new ArcGIS3DObjectSceneLayer(treeLayerSource, treeLayerName, treeLayerOpacity, treeLayerVisibility, arcGISMapsApiKey);

        zurichTreesLayer.MaterialReference = Resources.Load<Material>("Materials/GreenMaterial");

        zurichTreesLayer.IsVisible = treeLayerVisible;

        arcGISMap.Layers.Add(zurichTreesLayer);

 

This works perfectly fine in 2.2 (the trees are green, using the sourced green material) but this doesn't work any more in 2.3 (trees are white)

Please check out the screenshots to see how this is rendered in Play Mode

Version 2.2

Zurich_2.2.jpg

 

 

 

 

 

 

 

Version 2.3

Zurich_2.3.jpg

 

 

 

 

 

 

 

It looks like something has changed between 2.2 and 2.3

I'm running Windows 11 Pro, Unity 6000.3.16f1 and ArcGIS Maps SDK 2.3

Any ideas are very much appreciated 🙂

Thanks and best regards

Winfried

 

0 Kudos
0 Replies