Jump to content
Search Community

_Ro

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by _Ro

  1. Yes, it is very much possible to swap a pixi sprite's texture with gsap.

    I was able to swap the texture of a sprite with a canvas this way:

     

    const dataUrl = canvas.toDataURL('png');
    
    const base = new PIXI.BaseTexture(dataUrl);
    
    const newTexture = new PIXI.Texture(base);
    
    gsap.set(resource, {
    pixi: { texture: newTexture}
    });

     

    • Like 1
×
×
  • Create New...