Search Unity

Feedback m_ColliderInstanceID being not accessible

Discussion in 'General Graphics' started by merpheus, Dec 16, 2020.

  1. merpheus

    merpheus

    Joined:
    Mar 5, 2013
    Posts:
    202
    Hi, I am trying to emit a sound effect at the first time when my bullet shell particle hits to the ground(which emitted from particle system)

    If I don't filter it out, it continuously plays a shell drop sound effect. So, when I check the assembly, it seems like when we have OnParticleCollision, for each ParticleCollisionEvent there is a m_ColliderInstanceID. I am not sure is it per-particle basis or not. But if there would have been something that we can access to the colliding particle data, I'd just filter it out with a list of sound played particles and not let it play another sound when it raises collision messages.

    TL;DR;
    I can't access to colliding particle info from particle collision event to just play particle hit sound once.

    Adding a feature or exposing some property for m_ColliderInstanceID would be helpful as a request.
     
  2. merpheus

    merpheus

    Joined:
    Mar 5, 2013
    Posts:
    202
    Why such a basic feature is almost impossible to do with particle system right now?