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 UnbreakableOne · Oct 16, 2014 at 11:12 AM · collisionparticle

Is it possible to grab the emitted particles from particle system and attach a component to them?

Title says it all.

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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by MrSoad · Oct 16, 2014 at 11:56 AM

I've not done this. If you made your own particle emitter using object pooling and prefabs(a particle prefab, instantiated for as many as you need and stored in an array) then you can should be able to attach components to these(loop through you particle array) at run time if needed.

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 UnbreakableOne · Oct 18, 2014 at 12:25 PM 0
Share

I'm asking about how to do this with Unity's new particle system, Shuriken.

avatar image MrSoad · Oct 18, 2014 at 03:21 PM 0
Share

I'm talking about building your own one from scratch, this way you can do whatever you like with it. I have no idea how or if you can do it with the Shuriken particle system, but I have built my own using the method descried above. Using the term particle above may have been a little misleading for which I am sorry.

Have you Googled "Unity add component to shuriken particle system" to see what info is already out there regarding the possibility of using it in the way that you wish to?

avatar image UnbreakableOne · Oct 19, 2014 at 12:14 PM 0
Share

Yep, no luck.

avatar image
0

Answer by Kiwasi · Oct 19, 2014 at 11:01 AM

You can grab the particles from a particle system. Then you create a GameObject and set the transform position to match the particle position. You can have any components you want.

I've not tried this, so I can't say how performant it will be.

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 UnbreakableOne · Oct 19, 2014 at 11:29 AM 0
Share

This approach won't work for two reasons:

1) I want my game objects to move with the particles, for example when I emit blood particles, I want my box collider 2D to move with the particle every frame.

2) I need to move the particle in accordance to bounce movements that the collider will receive based on it's collision to other objects it will collide with.

avatar image Scribe · Oct 19, 2014 at 12:49 PM 1
Share

If it is just to find collisions, these links might help: here and here

avatar image Kiwasi · Oct 19, 2014 at 07:02 PM 0
Share

To make the GameObject move with the particles you will want to grab the position of the particle every frame and reset the position of the GameObject. Or you can do it the other way and set the particle position by the GameObject. It makes no sense to do both.

Ultimately you might be better off abandoning particle effects and just using plain GameObjects. Particle effects are designed for the cheap production and movement of a lot of small sprites. What you are describing is no longer cheap.

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

30 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

Related Questions

Emitting Particles on Collision 0 Answers

Emit Particle when the parent gets collision 2 Answers

How to access particle collision locations 2 Answers

Locking particle axis? 3 Answers

Anyone had this collision glitch? 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