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 testandi · Jul 05, 2013 at 02:19 PM · collisionparticlesmessages

Particle collision for Shuriken

Hi All,

Im trying to get messages to spheres which are hit by a particle system which is attached to a cube prefab (Unity 4.1.5f1).

I have enabled the world collider within the particle system.

I tried several ways like

 void OnParticlesCollision(GameObject collision){

 print ("luck (prefab_testing)");
 }


but Im getting no messages. I have read in several threads that maybe from 4.2 on (April this year) it should have been supported.

Is there any way to solve this?

Best wishes and many thanks

Andi

Comment
Add comment · Show 4
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 TinyDev · Jul 09, 2013 at 08:22 PM 0
Share

We've been watching for this to be delivered for several months now as part of the "4.2 April" release. Have not seen an updated ETA. In our case, it would be far more preferable to use Shuriken across the scenes with scriptable elements but we can't wait much longer.

avatar image KyleHatch85 · Jul 23, 2013 at 02:40 PM 0
Share

it works in 4.2.

all i did was... and i got a whole load of objects printing out.

void OnParticleCollision(GameObject go) {
Debug.Log(go.name);
}

Yeah, should say you don't need the world particle collider object on it anymore, in the shuriken under the collision section at the bottom of that, they've added a tick box for sending messages.

avatar image Benproductions1 · Jul 24, 2013 at 04:35 AM 0
Share

Theres an option for sending messages, on the component

avatar image pdrocb · Aug 13, 2013 at 10:12 PM 0
Share

$$anonymous$$yleHatch85 how did you achieve the ParticleCollision message? I'm trying but nothing happens. I have a cube with this void OnParticleCollision(GameObject go) { Debug.Log(go.name); } and I instantiate particles addinng WorldVCollider but nothing :(

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Wuzseen · Aug 13, 2013 at 10:15 PM

testandi, you have to upgrade to unity 4.2. As you said it's a unity 4.2 feature--being on unity 4.1 will mean it's not there.

The world particle collider is a feature of the legacy particle system and does not work with Shuriken. If you don't want to upgrade to 4.2 you will have to use the "old" particle system.

When you upgrade to 4.2, in the inspector under the "Collision" section of a Shuriken system you will see "Planes" change this to "World" and check the box "Send Collision Messages". Then you could carry on with your code as you were intending.

Comment
Add comment · 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

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

20 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

Related Questions

Unity 4.1 - Shuriken colide with GameObject 1 Answer

Detecting Particle Collisions 3 Answers

take control over particles 0 Answers

CharacterController & Particles 1 Answer

How do I use compute shaders with particles? 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