Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Skinned/Mesh Renderer

Discussion in 'Visual Effect Graph' started by Dwight_P, Jun 29, 2022.

  1. Dwight_P

    Dwight_P

    Joined:
    Feb 26, 2013
    Posts:
    42
    Hello,

    I wrote a particle script that follows a skinned Mesh renderer of my character as he moves. I tried applying the same logic to a bullet so the particle stay with the model. I noticed that the skinned Mesh renderer only works for skinned meshes, make sense. BUT there is no mesh renderer input. I was kind of wondering why.

    There's a "mesh" input, but it pulls from the assets only, not the scene so I cannot attach the object the render belongs too. It also only gets the mesh itself, not the renderer.
     
  2. Qriva

    Qriva

    Joined:
    Jun 30, 2019
    Posts:
    1,296
    Why it does not make no sense? The only reason you need skinned mesh renderer is the fact that mesh is transformed on the fly, so you need access to the current data. In case of static mesh you need that mesh only and there is no reason to access renderer, because it uses asset from mesh filter component anyway (the same one you need).