Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
1
Question by Ron Jones · Aug 15, 2011 at 09:27 PM · renderingparticlesawakeprecalculate

Pre-calculating Particles

Hey everyone, I'm having trouble finding a script that will allow me to pre-render or pre-calculate my particles to get them to appear when the scene is first entered. I'm trying to create this effect with particles in the background, however I don't want the player to wait until it can be seen... 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

3 Replies

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by Eric5h5 · Aug 15, 2011 at 10:40 PM

Use ParticleEmitter.Simulate. For larger amounts of time, it works better if you call it multiple times with small increments:

 // Simulate 10 seconds
 for (i = 0; i < 10; i++) {
     ParticleEmitter.Simulate(1.0);
 }


Comment
Add comment · 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 Ron Jones · Aug 15, 2011 at 11:36 PM 0
Share

Thanks!... I was hoping someone would answer using this method

avatar image
0

Answer by Rennat · Aug 15, 2011 at 09:49 PM

I don't know of a way to start a ParticleEmitter mid-stream like you mentioned. Perhaps creating your own particle emitter class would be called for here. I've never tried but I assume you can subclass ParticleEmitter.

You could make the ParticleEmitter's emission ellipse large enough to cover the area you want particles to start in but that may break the look you had created.

I have seen people use scene transitions or small intro animations to allow particle emitters time to reach full effect.

What specifically is this emitter doing? There may be a better way to "fake" pre-calculating it depending on the context.

Comment
Add comment · Show 2 · 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 Ron Jones · Aug 15, 2011 at 10:06 PM 0
Share

Yea that's what I started doing in case there was no answer. I'm working on creating the right starting particles and have it merge to the initial effect, thanks.

avatar image DaveA · Aug 15, 2011 at 10:33 PM 0
Share

I agree. Either subclass it or start with larger/faster values to shoot particles out very fast, then change them quickly down to the normal values, but that might be quite tricky. Have you looked at some of the particle systems in the Asset Store?

avatar image
0

Answer by PatHightree · Aug 15, 2011 at 10:37 PM

You can set Time.timeScale to 100, wait 5 seconds (in scaled time) and set it back to 1. This will take 0.05 seconds, now your particle system is up and running. Ofcourse this is a global thing, so this might not work in your situation.

Comment
Add comment · 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 Ron Jones · Aug 15, 2011 at 10:39 PM 0
Share

Hmm, that's interesting... Thanks

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

6 People are following this question.

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

Related Questions

Pre-calculating Particles (how to implement) 1 Answer

Unity drawing bug? 1 Answer

Why aren't my particle systems batched? 1 Answer

Overlapping particle systems 0 Answers

Shaders not working on particles in Unity 5! -1 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