<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: change IsVisible properties by button in running mode in ArcGIS Maps SDK for Unity Questions</title>
    <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/change-isvisible-properties-by-button-in-running/m-p/1259664#M442</link>
    <description>&lt;P&gt;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.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;arcGISMap.Layers.Add(my_layer);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;ArcGISMap.Layers.Remove(my_layer);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or you could also play around with the opacity of the layer without needing to rebuild the map.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;my_layer.Opacity = 0.1f;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 18 Feb 2023 19:26:25 GMT</pubDate>
    <dc:creator>and1</dc:creator>
    <dc:date>2023-02-18T19:26:25Z</dc:date>
    <item>
      <title>change IsVisible properties by button in running mode</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/change-isvisible-properties-by-button-in-running/m-p/1259630#M441</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;i want change layer properties like isvisible in game mode by button.&lt;/P&gt;&lt;P&gt;whats this function solution in unity sdk?&lt;/P&gt;&lt;P&gt;i try some code but dont solved problem.&lt;/P&gt;&lt;P&gt;i try use this function but there is not document for&amp;nbsp;ArcGISCollection(foreach and for not work in this collection)&lt;/P&gt;&lt;P&gt;ArcGISCollection&amp;lt;ArcGISLayer&amp;gt; layers = arcGISMapComponent.View.Map.Layers;&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Feb 2023 06:36:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/change-isvisible-properties-by-button-in-running/m-p/1259630#M441</guid>
      <dc:creator>hamedsetorg</dc:creator>
      <dc:date>2023-02-18T06:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: change IsVisible properties by button in running mode</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/change-isvisible-properties-by-button-in-running/m-p/1259664#M442</link>
      <description>&lt;P&gt;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.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;arcGISMap.Layers.Add(my_layer);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;ArcGISMap.Layers.Remove(my_layer);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or you could also play around with the opacity of the layer without needing to rebuild the map.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;my_layer.Opacity = 0.1f;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Feb 2023 19:26:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/change-isvisible-properties-by-button-in-running/m-p/1259664#M442</guid>
      <dc:creator>and1</dc:creator>
      <dc:date>2023-02-18T19:26:25Z</dc:date>
    </item>
  </channel>
</rss>

