• Content Count

  • Joined

  • Last visited

  1. Thanks! I'm using Typescript, and the default callback parameter was of type DisplayObject so I was not finding stopPropagation(). Ie. : mySprite.on('click', function (ev) { }); Forcing an InteractionEvent type worked mySprite.on('click', function (ev: PIXI.interaction.InteractionEvent) { ev.stopPropagation(); });
  2. If I have a container and a child of it, and both have "interactable" set to true. I noticed that if I click on the child, both the child and its container get the event. How can I prevent the event from propagating to the parent? Ie. imagine the container is the play area, and on top of it there's objects. If I click the play area I expect the character to move there. If I click an object, I expect to interact with it, and stop the propagation there, so it doesn't get to the play area callback. Thanks!
  3. Thanks for your reply! I'm using version 4.8.7 which I got from npm. Is version 5 ready to use already? Even after checking the docs I don't understand how u_resolution is already defined, as I don't seem to be there unless I define it. Is there any sample code I can check? >u_resolution is actually part of filter uniforms that depend on temporary pow2-sized textur´╗┐e does this mean it only works for pow2-sized textures?
  4. Is there a way to globally set the values of certain uniforms, so they don't need to be set on a per shader basis? ie.: uniform vec2 u_resolution; uniform float u_time; It seems to be it might be inconvenient to have to update every shader each when we change resolution, or to update the time Thanks!