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 Essential · Jun 19, 2012 at 06:41 PM · positionparticlesshurikenpenelope

Possible to get particle positions with Shuriken?

Is it possible to get particle positions in Shuriken?

I know the old particle system could do this, allowing for 'collectable particles', like in the Penelope tutorial. If Shuriken can't, would there be any issues with me using the old system? (I'm unfamiliar with either currently).

Comment
Add comment · Show 1
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 Essential · Jun 21, 2012 at 10:10 PM 0
Share

Is my only alternative to create my 'collectable particles' manually as scripted prefabs? I don't $$anonymous$$d doing this, but am just wondering if there would be any performance loss in doing it this way as opposed to using the particle system as the Penelope tutorial does...

1 Reply

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

Answer by Wolfram · Jun 21, 2012 at 11:43 PM

Doesn't ParticleSystem.GetParticles() and ParticleSystem.Particle.position do what you want?

Comment
Add comment · Show 4 · 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 Essential · Jun 22, 2012 at 02:03 AM 0
Share

Hmm… I looked into that but there's no clear documentation on how to use them… I'll see if I can figure it out.

avatar image Wolfram · Jun 22, 2012 at 12:32 PM 1
Share

I haven't worked with Shuriken yet, but it should be completely analogous to the old version, which used direct assignment from/to myParticleEmitter.particles, and myParticle.position.

avatar image Essential · Jun 22, 2012 at 07:27 PM 0
Share

Okay I think I have figured it out. To store the particles into an array, first you need to create an array then send the array within the ParticleSystem.GetParticles() function. Like below:

 var particleTotal = 7;
 private var particles = new ParticleSystem.Particle[particleTotal];
 
 
 function Update ()
 {
     particlesLength = particleSystem.GetParticles(particles);
         
     Debug.Log( particles[0].position );
 }

It needs to be in the Update loop because the number of particles obviously changes over time

avatar image RodrigoSeVeN · Apr 22, 2015 at 11:23 PM 0
Share

In case someone wants to change those values, you need to use the ParticleSystem.SetParticles() function after changing the values from the collected Array.

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Converting vortex effect from legacy to Shuriken 1 Answer

Shuriken particle System - change velocity by trigger 0 Answers

Shuriken particle system mesh question 1 Answer

If you're not using dynamic lighting, is there any performance benefit to turning off cast/receive shadows on shuriken particles? 0 Answers

How to destroy / hide a single particle? 2 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