|
|
|
|
|
|
[SerializeField] |
|
|
|
float coefficientScale = 100.0f; |
|
|
|
[SerializeField] |
|
|
|
SkinnedMeshRenderer skinnedMeshRenderer; |
|
|
|
SkinnedMeshRenderer skinnedMeshRenderer = null; |
|
|
|
|
|
|
|
ARFace m_Face; |
|
|
|
ARKitFaceSubsystem arkitFaceSubsystem; |
|
|
|
|
|
|
int mappedBlendShapeIndex; |
|
|
|
if (m_FaceArkitBlendShapeIndexMap.TryGetValue(xrFaceFeatureCoefficient.arkitBlendShapeLocation, out mappedBlendShapeIndex)) |
|
|
|
{ |
|
|
|
if (mappedBlendShapeIndex >= 0 ) { |
|
|
|
if (mappedBlendShapeIndex >= 0 ) |
|
|
|
{ |
|
|
|
skinnedMeshRenderer.SetBlendShapeWeight (mappedBlendShapeIndex, xrFaceFeatureCoefficient.coefficient * coefficientScale); |
|
|
|
} |
|
|
|
} |
|
|
|