• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
Question by Adrian Love · Apr 27, 2010 at 03:17 AM · collidercrashparticleemitterhitbox

Particle Emitter crashing!

In an attempt to find my own answer to this question, I have already read that particle emitters can crash when there are too many (see here: http://answers.unity3d.com/questions/7348/particle-emitter-breaks-in-emission-help ) but I'm experiencing something different.

I'll try to be succinct with my details as not to ramble.

I have a Particle Emitter on a ship, it has a script on it that fires the particle emitter. simple stuff.

It also has a Particle Collider, as you can imagine, when it hits a hitbox on the 'enemy' layer, the particle should die. (and later the oncollide event will kill the enemy).

Now when I start the game, you can see the Particle Emitter in the hierarchy, I fire a few times and then as soon as the last particle dies (it doesn't matter how many I shoot) The particle emitter crashes. This same thing happens when I set the Collision Energy Loss at a value > 0.

I imagine lots of people have issues with Particle Emitters / Colliders. So beyond my question, what tools could I use to debug the crashing of a game object?

Thanks for your time.

Comment
duck

People who like this

1 Show 0
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by duck · Apr 27, 2010 at 01:03 PM

First of all - there are a few main categories of problems which can occur when developing, they are: "Crash", "Freeze / Hang", "Error", or "Unexpected Behaviour".

Don't describe your problem as a crash unless it really is crashing -i.e. causing Unity to unexpectedly terminate (it's kind of disparaging to Unity's reputation!). Particle systems don't crash when there are too many particles, they simply wait until some of the existing particles have died away before more can be created, exactly as intended. This might be unexpected behaviour to you, if you didn't know about this limit.

If your particle system has simply stopped emitting particles when you think it should be, but otherwise the rest of your game is functioning and there are no errors, then your problem falls into the "Unexpected Behaviour" category :-)

So, I'm guessing what you really mean by "crash". Does it just stop emitting? Does the particle system gameobject disappear from the hierarchy? If it disappears, it is most likely because you have set the "Autodestruct" property on your particle animator, either in the editor, or via scripting at some point.

Comment
Adrian Love
Henri 1

People who like this

2 Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Adrian Love · Apr 27, 2010 at 02:02 PM 0
Share

Rawr. I swear I checked if auto destruct was the culprit. This also stopped my emitter from dropping from the hierarchy when I use a collision energy loss > 0.

Thanks for helping this newbie out. There wasn't much feedback from unity besides the particle emitter just disappearing from the hierarchy.

And now I know (And knowing is half the battle.) Thanks Duck.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

How to emit all particles from one spot at once? 1 Answer

Unity 4.5.5 crashes when using convex mesh colliders 0 Answers

particle emitter on/off using the left mouse button 1 Answer

Particle system question 1 Answer

Inverted Particle Emitter 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges