Tiled Map - Disable/Enable layers

I have a map I've made in Tiled showing, is it possible to programatically turn on/off layers of the map?
or is this best to unload and load a new .tmx map.

Thanks,

Answers

  • RamiTabbaraRamiTabbara AUMember, Xamarin Team Xamurai

    Hi Andrew,

    Assuming that by turn off you mean hiding the rendering of a particular layer, that can be achieved by

    
    // Layer name is the one provided by Tiled
    var tileMapLayer = tileMap.LayerName("layer1");
    tileMapLayer.Visible = false;
    
    
Sign In or Register to comment.