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
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
Thanks a lot!