In pixijs project, i want to create class component that extends Spine, but it gives me an error “Uncaught Error: The spineData param is required.”
Here is an example:
export class TargetView extends Spine {
constructor() {
super();
this.spineData = RESOURCES.getSpineData("shooting");
}
}
I tried to pass spineData when creating class
target = new TargetView("spinedata);