Search Unity

Mesh Renderer Enable/ Disable in animation renders incorrectly

Discussion in 'Animation' started by arimacdigital, Jun 14, 2019.

  1. arimacdigital

    arimacdigital

    Joined:
    Nov 27, 2017
    Posts:
    5
    I am using a 2D model made within Maya which has different meshes to enable and disable for different animations. In some animations, the meshes enable and disable transition through different orientations (eg : for hand closed and open, there are two meshes).

    The following is the animation timeline which shows the enabling and disabling of mesh renderers.
    upload_2019-6-14_13-22-42.png

    I am also using a renderer sorting script since I am using an unlit/transparent material to the model, some meshes dont render correctly.

    However, the issue is, when the animation is playing, occasionally there is a split second of very large mesh being visible. The bottom image is such case I managed to capture. This happens around 1/3 of the animation.

    I should also note that there are transitions which changes the states between animations as well. So there are split second enable/ disables in the animation keyframes.

    Is that the reason for the following? Is there any method to fix this?

    upload_2019-6-14_13-22-9.png

    The following is how it should look like

    upload_2019-6-14_13-28-9.png
     
  2. No0bieNo0b

    No0bieNo0b

    Joined:
    Dec 10, 2018
    Posts:
    2
    Any updates for this? I have the same type of issue.