Search Unity

Removing Skinned Mesh Renderer Disables animation?

Discussion in 'Editor & General Support' started by dogzerx2, Jul 17, 2010.

  1. dogzerx2

    dogzerx2

    Joined:
    Dec 27, 2009
    Posts:
    3,971
    Is there a way to disable the Skinned Mesh Renderer, but still being able to access its bone's animation?

    I need to diable Skinned Mesh Renderer, so it doesnt use cpu.
    But if I disable Skinned Mesh Renderer, the animation disables as well, when I debug each bone's localRotation I can see it's static, no animation whatsoever.
    Yet if I re-activate the Skinned Mesh Renderer, I can retrieve each bone's animation once again, localRotation is animated.

    What I have is two duplicated objects which contains certain bone hierarchy. One object will be the mesh, the other will have the animations (this way i can pass the animation to the mesh object, and modify afterwards)
    The "animation object" will play the animation, while the "mesh object" will go bone per bone copying the position/rotation/scale each frame, it's the only way I can modify after the animation.
    But I don't want the "animated object" to show in the render overlapping with the "mesh object", as I just need its animation info.
     
    dejanpej likes this.
  2. StefDevs

    StefDevs

    Joined:
    Jan 20, 2014
    Posts:
    23
    Old thread but I found it when searching for solution to similar scenario (overriding oculus avatar hand poses with my own animated hands)...

    I solved this by setting the mesh reference on the skinned mesh renderer to 'none'. Animation still updates but nothing is drawn.
     
    peaceamit, gyamac, chingwa and 3 others like this.
  3. bhavi1

    bhavi1

    Joined:
    Oct 19, 2013
    Posts:
    5
    thanks so much!!!!