Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setTexture is now deprecated #30

Closed
lgraziani2712 opened this issue Jul 15, 2016 · 2 comments
Closed

setTexture is now deprecated #30

lgraziani2712 opened this issue Jul 15, 2016 · 2 comments

Comments

@lgraziani2712
Copy link

setTexture is now deprecated, please use the texture property, e.g : sprite.texture = texture;

It says in every requestAnimationFrame().

PIXIv3 : v3.0.11
pixi-particles: v1.6.6

@lgraziani2712
Copy link
Author

Ok, I found the "error". When developing with webpack, PIXI has no version. That's why the useAPI3 flag was false.

@lgraziani2712
Copy link
Author

Fixed installing:

  • transform-loader
  • browserify-versionify

And adding this to my webpack.config.js file:

{
  include: path.resolve(__dirname, 'node_modules/pixi.js'),
  loader: 'transform/cacheable?browserify-versionify',
},

Credits: pixijs/pixijs#1854 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants