restructure
This commit is contained in:
@ -0,0 +1,12 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Convai.Scripts.Runtime.Extensions
|
||||
{
|
||||
public static class SkinnedMeshRendererExtension
|
||||
{
|
||||
public static void SetBlendShapeWeightInterpolate(this SkinnedMeshRenderer renderer, int index, float value, float weight)
|
||||
{
|
||||
renderer.SetBlendShapeWeight(index, Mathf.Lerp(renderer.GetBlendShapeWeight(index), value, weight));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user