[Solved] Set visibility of a layer in javascript

Hello folks,
how do i show/hide a layer in javascript?
I’m coding an extension where i’d like to set visibility of a layer, i see there’s a getLayer method but no way to set.
Thanks :slight_smile:

runtimeScene.getLayer("Background").show(true);

The documentation about this method.

By clicking on the underlined line in a JS event, you can open the GDJS documentation.

(You have the auto-complete on desktop.)

How dumb… that was easy :slight_smile:
Thanks a lot!