Comments (3)
So it isn't particle
that is null, but particle.transform
(inside the particle.scale
getter), due to the particle having been destroyed (normally inside destroying the emitter). Because Emitter.destroy()
pretty thoroughly clears both the particle references and the behaviors that would allow Emitter.update()
to do anything when it runs, it seems that somehow a particle that belongs to a running emitter is getting destroyed rather than a destroyed emitter continuing to run. The other possibility of a destroyed particle finding its way to a new emitter seems less likely, as Emitters do not pool particles at all.
I hope this gives you enough direction to look for a cause within your code. I'm not completely ruling out a bug in the library in some rare condition, but if that is the case it isn't something that I can suss out without a running example.
from particle-emitter.
Thanks @andrewstart - I'll look into it and see if I can figure out some sort of repro case. I am certainly not doing anything to call destroy on individual particles, I only ever destroy the emitter itself.
from particle-emitter.
Hi @andrewstart I was able to identify the problem and resolve it. I was toggling off the emit
property for each emitter and later destroying them - but there was a timing issue where I was calling ParticleEmitter#destroy
after a parent PIXI container was called with destroy({children: true})
. Sorry for the false alarm.
from particle-emitter.
Related Issues (20)
- When to support pixi 7.0 HOT 1
- npm install errors upgrading to Pixi 7 HOT 4
- Can not use editor export json file - Format seems different HOT 1
- emitter.updateOwnerPos throws an error if emitter is destroyed HOT 2
- It extends Container, not ParticleContainer HOT 1
- Classes not invoked with new? HOT 3
- [inquiry] does Pixi particles use instanced rendering? HOT 3
- Need to interact with particular particle on mouse touch and destroy it HOT 2
- Alpha interpolating doesn't work for images HOT 2
- animatedSingle behaviour HOT 7
- Is the project will keep update? HOT 4
- Where can I find a CDN link to new version ? HOT 1
- Bug: PropertyNode.createList leads to errors if there are two points with same value HOT 2
- Best practice for continuous trail on a fast-moving object? HOT 5
- Support for v8 HOT 6
- `update(delta)` doesn't respect Ticker speed HOT 1
- Set velocity direction separately from rotation HOT 1
- upgradeConfig not working HOT 1
- Pixi-spine support HOT 1
- EmitterConfigV3 spawnShape has no effect on setting the radius HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from particle-emitter.