layers(layers: string[], defaultLayer: string): void
param
layers- The layer names.
param
defaultLayer- The default layer name.
deprecated
Use
setLayers(["bg", "obj", "ui"], "obj") // no layer specified, will be added to "obj" add([ sprite("bean"), ]); // add to "bg" layer add([ sprite("bg"), layer("bg"), ]);
since
v3001.0