BS Weight in SRanipal Lip sampel Script


private void RenderModelLipShape(LipShapeTable_v2 lipShapeTable, Dictionary<LipShape_v2, float> weighting)
{
    for (int i = 0; i < lipShapeTable.lipShapes.Length; i++)
    {
        int targetIndex = (int)lipShapeTable.lipShapes[i];
        if (targetIndex > (int)LipShape_v2.Max || targetIndex < 0) continue;
        lipShapeTable.skinnedMeshRenderer.SetBlendShapeWeight(i, weighting[(LipShape_v2)targetIndex] * 100);
    }
}

8 次查看0 則留言

相關文章

查看全部

Unity_HeadboxVive_0308 //========= Copyright 2019, HTC Corporation. All rights reserved. ===========using System.Collections.Generic; using UnityEngine; namespace ViveSR { namespace anipal { nam

https://answers.unity.com/questions/814870/why-arent-public-variables-shown-in-the-inspector.html public variables shown in the Inspector when inheriting Class used on game object using UnityEngine;