Search Unity

[Unity 5.3] Assigning multiple skinned mesh renderers to one particle system, via code at that

Discussion in 'Scripting' started by arturmandas, Dec 11, 2015.

  1. arturmandas

    arturmandas

    Joined:
    Sep 29, 2012
    Posts:
    240
    Hello,
    my character is built of many skinned mesh renderers. I want to instantiate one particle system, and I want my character to be the source of particles, hence I need to assign multiple skinned mesh renderers, while particle system allows me to assign only one.

    I thought about a workaround: create an empty mesh, iterate through all the children of my character, and if any has SkinnedMeshRenderer, then combine its mesh to that empty mesh, using CombineMeshes(). But this does not sound like a sound solution, probably would kill my performance.

    Any ideas?
     
  2. arturmandas

    arturmandas

    Joined:
    Sep 29, 2012
    Posts:
    240
    Nobody knows the solution?