Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Behavior of SetBlendShapeWeight after motion playback including BlendShpae

Discussion in 'Animation' started by kawahira, Apr 15, 2020.

  1. kawahira

    kawahira

    Joined:
    May 6, 2015
    Posts:
    3
    SetBlendShapeWeight is reflected correctly in the case of AnimationClip that does not contain any BlendShape key from the beginning.
    After applying the AnimationClip that contains even one key of BlendShape, even if you do SetBlendShapeWeight, the set value will be ignored.
    Even if you change to AnimationClip that does not contain any BlendShape key, the set value will be ignored even if you set SetBlendShapeWeight.

    Don't you know how to re-enable SetBlendShapeWeight for RnderMesh played with the Animanter set even once?

    Is there any solution to this problem?
     
  2. kawahira

    kawahira

    Joined:
    May 6, 2015
    Posts:
    3
    I asked the author of Animancer, a great asset, and found that it can be overwritten by setting it with LateUpdate. Is this the solution?

    Since SetBlendShapeWeight is performed for every BlendShape every frame, there is a method to suppress overwriting of Animator after playing even once.
    I would like to know if there is.

    * I would like to thank the authors of Animancer.
     
  3. wilsonillustration

    wilsonillustration

    Joined:
    Apr 2, 2019
    Posts:
    2
    You may also try having the blend shape on a seperate layer mask. Driving that blendshape on it's own layer, you could set the bend shape weight per behavior or state, or even inhereit it from the previous clip. It wouldn't need to be in every anim clip that way.
     
  4. kawahira

    kawahira

    Joined:
    May 6, 2015
    Posts:
    3
    設定後にアニメーションクリップが上書きし続けるレイヤー自体を無効にできる場合は、期待どおりの操作ができるようです。調査します。ありがとうございました!