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 DignifiedTuna · Jan 01, 2013 at 12:02 PM · particlestimer

Particles emitting after 10 seconds

I am really new to scripting, so I don't really know what to do. I have my fire and explosions and smoke all placed in my scene, but I want them to emit after 10 seconds. How would I do this?

I don't know scripting, so I'm looking for more of a step by step, and what to write sort of thing.

Thanks :)

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
2
Best Answer

Answer by Ben Ezard · Jan 01, 2013 at 12:31 PM

If you're using the new Shuriken particle systems, you'll see a variable called "Start Delay" on the component - just set this to 10, and the particle system will automatically activate after 10 seconds (if you want it to start 10 seconds after the scene loads) If you want to activate it at some other point in the game (for example, 10 seconds after you shoot something), then un-check the "Play On Awake" variable on the particle system component, and when you want the 10 second timer to start, use the code

gameObject.GetComponent(ParticleSystem).Play();
And your particle system will start playing :)
If you're using the old system, just let me know in a comment and I'll add the instructions for that :)
Comment
Add comment · Show 3 · 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 asafsitner · Jan 01, 2013 at 12:33 PM 1
Share

I believe you want to call Play ins$$anonymous$$d of Emit :)

avatar image Ben Ezard · Jan 01, 2013 at 12:48 PM 0
Share

Ah yes my bad, I've edited my answer
Thanks :)

avatar image DignifiedTuna · Jan 01, 2013 at 01:25 PM 0
Share

I am using the old system, but I'm going to get Shuriken ins$$anonymous$$d, because it sounds much, much easier. Thanks! :D

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

10 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

How can I make a "Fastest Lap" scoring system for a racing game? 2 Answers

Laptime timer using TimeSpan - force milliseconds to 00 and not 000? 1 Answer

Texture of a ParticleSystem with UnityScript 0 Answers

Accessing material of particle renderer?? 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