Comments (2)
Yes, it is intended that you don't use an emitter after destroying it. If you just wanted all your particles gone but to continue using the emitter, use Emitter.cleanup()
.
from particle-emitter.
Yes, but in the event that it is accidentally used after being destroyed - I would assume it would be better to fail silently or log an error than to throw and interrupt execution?
A simple
if(this.owner){...}
would prevent it from throwing.
This is easy to happen on accident if the emitter is in an array and wasn't removed from the array after being destroyed.
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
- 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.