Hi, in CHrome (Mac and PC) I use the following code without error:
this.myLayer= this.app.scene.layers.getLayerByName('myLayer');
myEntity.render.layers = [this.myLayer.id];
…but in Safarai on Mac I get the following error in the console:
TypeError: undefined is not an object (evaluating 'rhs.r)
The game continues to run but I have an Error Loading Scripts. Open the browser console… in the game window.
Does anyone know what might be going on or how to fix it.
Thanks