Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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
0
Question by LifeSizeDeity · Nov 12, 2010 at 06:17 PM · particlesmoke

Trying to create a puff of smoke

I'm trying to create a puff of smoke. How do I emit a certain number of particles per action(button press, mouse click, or collision). Currently I'm trying to cut off the emitter after a certain period of time, but doing this causes the particles to just stick in the air, even though the movement should be coming from the particle animator.

Comment
Add comment
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
1
Best Answer

Answer by Loius · Nov 12, 2010 at 06:45 PM

emitter.emit = false;

Comment
Add comment · Show 6 · 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 LifeSizeDeity · Nov 12, 2010 at 07:04 PM 0
Share

When I do that, the particles just disappear. I would like for the particles to stay alive and maintain their current velocity.

avatar image VS48 · Nov 12, 2010 at 07:46 PM 2
Share

The particles will stay alive for as long as their energy permits, stopping the emitter will not destroy the particles. If the energy is very small, they might seem to disappear. You can also try enabling "One Shot" on the particle emitter and then use the ParticleEmitter::Emit() call at your desired frequency.

avatar image LifeSizeDeity · Nov 12, 2010 at 10:06 PM 0
Share

Okay, I guess a better question would be, how do I guarantee that the emitter plays one shot and that's it?

avatar image Loius · Nov 13, 2010 at 04:45 AM 0
Share

Set the emitter to be one shot, then use emitter.emit = true; yield; emitter.emit = false; and that should do the trick.

avatar image LifeSizeDeity · Nov 16, 2010 at 12:47 AM 0
Share

Thanks. I guess the particle emitter doesn't return anything when the one shot is completed. $$anonymous$$ight be handy unity guys. To fix my problem I made sure to set the $$anonymous$$ and max emission to the same number and then keep emitter.emit at true until the emitter.particleCount > emitter.$$anonymous$$Emission. If there is a better way, any comments would be appreciated.

Show more comments

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.

Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Related Questions

Wispy Smoke trouble 0 Answers

Stop particles from dying? 2 Answers

How to do Subway Surfers Jetpack Smoke Effect? 1 Answer

Particle system question 1 Answer

Two Particle Systems 1 Answer


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