Prior to GSAP3 I recall a `killAll()` function that supported Pixi.js display objects.
Instead, when I call `gsap.killTweensOf("*")` using the wildcard glob it does not kill the tween.
CodeSanbox example: https://codesandbox.io/s/gsap-kill-tweens-of-ww9fsb?file=/src/index.js
Example code:
import PixiPlugin from "gsap/PixiPlugin";
import { gsap, Power4 } from "gsap";
gsap.registerPlugin(PixiPlugin);
PixiPlugin.registerPIXI(PIXI);
const tween = gsap.timeline({ repeat: -1 });
tween
.to(circle, {
duration: 0.35,
pixi: { tint: 0xffff00 },
ease: Power4.easeOut,
callbackScope: this
})
.to(circle, {
duration: 0.65,
pixi: { tint: 0x123456 },
ease: Power4.easeOut,
callbackScope: this
});
setTimeout(() => {
console.log("Killing all tweens");
gsap.killTweensOf("*");
}, 5000);
Tracing the GSAP code, it finds my timeline but the wildcard is not adding the tweens for disposal.
Presume this is either a bug, or I'm not using `killTweensOf` correctly in the Pixi.js space.