Closed crapthings closed 2 years ago
var image = scene.add.rexCircleMaskImage(x, y, key, frame, config);
@rexrainbow hey I've tried it but I got this Uncaught TypeError: this.add.rexCircleMaskImage is not a function
if I add plugin to preload, it works, but not working at init game stage
scene.load.plugin('rexcirclemaskimageplugin', 'https://raw.githubusercontent.com/rexrainbow/phaser3-rex-notes/master/dist/rexcirclemaskimageplugin.min.js', true);
Here is a test code of import CircleMaskImagePlugin from path.
scene.load.plugin
instruction is designed for preload stage.
@rexrainbow ah nice it works
I've just copied the wrong import path at
https://rexrainbow.github.io/phaser3-rex-notes/docs/site/circlemaskimage/#import-class
change
import CircleMaskImagePlugin from 'phaser3-rex-plugins/plugins/circlemaskimage'
to
import CircleMaskImagePlugin from 'phaser3-rex-plugins/plugins/circlemaskimage-plugin.js'
To use CircleMaskImage class in 'phaser3-rex-plugins/plugins/circlemaskimage' :
var image = new CircleMaskImage(scene, x, y, key, frame, config);
sscene.add.existing(image);
Uncaught TypeError: Cannot read properties of undefined (reading 'queueDepthSort')