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
0
Question by io3creations · May 05, 2018 at 10:06 PM · particlesystemparticle systemparticle

What would be the "next-best-thing" to a ParticleSystem?

I've tried a few things: using mesh, PrimitiveType.Quad, Sprite Renderer, etc) but none of those came even close to ParticleSystem in performance.

Based on this tutorial: https://medium.com/@rafalwilinski/tutorial-particle-sea-in-unity3d-70ff1350fa9e I've found that it is possible to set the position of the particles of a ParticleSystem. However, even that seems to take a considerable performance hit. Also, as the number of particles is increased, beyond a certain number (seems device performance dependent) the particle movement starts jittering.

Overall, a ParticleSystem approach would be acceptable but I'm wondering if there's an approach that has better performance.

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
0

Answer by ifurkend · May 06, 2018 at 12:18 AM

Noise has been implemented to the native particle system since Unity 5.5. To simulate that sea of particles, just enable the Noise module, check separate axes, give some strength to y-axis only. You can also enable Color by Speed module, so each particle changes color when it moves in different speed.

Can’t promise to be the same thing, but it’s always preferable to use the built-in modules first before resorting to personal script.

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 io3creations · May 06, 2018 at 02:30 AM 0
Share

Thank you for the reply. Actually, the Particle Sea tutorial was just an example for moving the particles with a personal script. What I want to do is a magic effect where shapes fly around a character and as I was testing different things, overall, ParticleSystem gave a much better performance than the other things. The only drawback is that ins$$anonymous$$d of "simply" having a list of objects, I have to set up a ParticleSystem. If there isn't any better approach then that'll still be worth it.

avatar image ifurkend · May 06, 2018 at 03:15 AM 0
Share

You can still get/setParticles in your own script, but the point is, reduce the actual particales you want to manipulate via script. For instancing, have a particle system with low emission rate modified by the script, and use sub emitter to emit more particles not directly affected by the script. You can use inherit velocity to make the sub particles move in the same/opposite initial direction of the spawning particle system.

In Unity 2018.1, radial(orbital) velocity is introduced to the velocity over lifetime module, eli$$anonymous$$ating another demand to get/setParticles.

avatar image io3creations ifurkend · May 06, 2018 at 04:30 PM 0
Share

Overall, wouldn't that approach still be mainly suitable for particles where settings are set before particles are emitted? That is, if I want the kind of particle movement where particles move along a certain path, stop, move again as needed based on other factors in the game, it seems to me that I do that with a script.

On the other hand, I'm sure I'll need other types of particle systems where your tips will come handy.

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

89 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity BUG crash when modify ParticleSystem MinMaxCurve 0 Answers

Destroy particles based on bounds not lifetime 0 Answers

Rotation of the Particle System is ignored for velocity over lifetime when the simulation space is Custom. Is this a bug? 0 Answers

How to make particles always face away from player 0 Answers

How is Limit Velocity Over Lifetime calculated? 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