hello,
i want change layer properties like isvisible in game mode by button.
whats this function solution in unity sdk?
i try some code but dont solved problem.
i try use this function but there is not document for ArcGISCollection(foreach and for not work in this collection)
ArcGISCollection<ArcGISLayer> layers = arcGISMapComponent.View.Map.Layers;
thank you.
Solved! Go to Solution.
Hello, I'm sure there might be other solutions out there but on top of my head I think you can try to implement a toggle system to add/remove layers.
arcGISMap.Layers.Add(my_layer);
ArcGISMap.Layers.Remove(my_layer);
Or you could also play around with the opacity of the layer without needing to rebuild the map.
my_layer.Opacity = 0.1f;
Hello, I'm sure there might be other solutions out there but on top of my head I think you can try to implement a toggle system to add/remove layers.
arcGISMap.Layers.Add(my_layer);
ArcGISMap.Layers.Remove(my_layer);
Or you could also play around with the opacity of the layer without needing to rebuild the map.
my_layer.Opacity = 0.1f;