1using System.Collections.Generic;
9 [CreateAssetMenu(menuName =
"TriLib/Mappers/LypSync/By Name Lip Sync Mapper", fileName =
"ByNameLipSyncMapper")]
15 [Header(
"Left = Blend-Shape Key Name, Right = Viseme Name")]
30 protected override int MapViseme(AssetLoaderContext assetLoaderContext, LipSyncViseme viseme, IGeometryGroup geometryGroup)
35 if (visemeCandidate.Viseme == viseme)
37 foreach (var candidateName
in visemeCandidate.CandidateNames)
39 for (var j = 0; j < geometryGroup.BlendShapeKeys.Count; j++)
41 var blendShapeGeometryBinding = geometryGroup.BlendShapeKeys[j];
Represents a Mapper that search Visemes by searching Blend-Shape Keys names.
StringComparisonMode StringComparisonMode
String comparison mode to use on the mapping.
override int MapViseme(AssetLoaderContext assetLoaderContext, LipSyncViseme viseme, IGeometryGroup geometryGroup)
bool CaseInsensitive
Is the string comparison case insensitive?
List< VisemeCandidate > VisemeCandidates
The viseme candidates. A viseme candidate is a reference between visemes and valid blend-shape names ...