Add morph name
This commit is contained in:
@@ -176,7 +176,7 @@ public class UmaViewerUI : MonoBehaviour
|
||||
foreach (FacialMorph morph in tempMorph)
|
||||
{
|
||||
var container = Instantiate(UmaContainerSliderPrefab, FacialList.content).GetComponent<UmaUIContainer>();
|
||||
container.Name.text = morph.name;
|
||||
container.Name.text = morph.name + " (" + morph.tag + ")";
|
||||
container.Slider.value = morph.Weight;
|
||||
container.Slider.maxValue = 1;
|
||||
container.Slider.minValue = 0;
|
||||
|
||||
@@ -2,6 +2,8 @@ using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using UnityEngine;
|
||||
using Gallop.Live.Cutt;
|
||||
using System;
|
||||
|
||||
namespace Gallop
|
||||
{
|
||||
@@ -33,6 +35,7 @@ namespace Gallop
|
||||
morph.target = this;
|
||||
morph.direction = j > 0;
|
||||
morph.name = "EyeBrow_" + i + "_" + (morph.direction ? "L" : "R");
|
||||
morph.tag = Enum.GetName(typeof(LiveTimelineDefine.FacialEyebrowId), i);
|
||||
morph.trsArray = _eyebrowTarget[i]._faceGroupInfo[j]._trsArray;
|
||||
foreach (TrsArray trs in morph.trsArray)
|
||||
{
|
||||
@@ -58,6 +61,7 @@ namespace Gallop
|
||||
morph.target = this;
|
||||
morph.direction = j > 0;
|
||||
morph.name = "Eye_" + i + "_" + (morph.direction ? "L" : "R");
|
||||
morph.tag = Enum.GetName(typeof(LiveTimelineDefine.FacialEyeId), i);
|
||||
morph.trsArray = _eyeTarget[i]._faceGroupInfo[j]._trsArray;
|
||||
foreach (TrsArray trs in morph.trsArray)
|
||||
{
|
||||
@@ -83,6 +87,7 @@ namespace Gallop
|
||||
morph.target = this;
|
||||
morph.direction = j > 0;
|
||||
morph.name = "Mouth_" + i + "_" + j;
|
||||
morph.tag = Enum.GetName(typeof(LiveTimelineDefine.FacialMouthId), i);
|
||||
morph.trsArray = _mouthTarget[i]._faceGroupInfo[j]._trsArray;
|
||||
foreach (TrsArray trs in morph.trsArray)
|
||||
{
|
||||
|
||||
@@ -11,6 +11,7 @@ namespace Gallop
|
||||
public class FacialMorph
|
||||
{
|
||||
public string name;
|
||||
public string tag = "";
|
||||
public bool direction;
|
||||
public FaceDrivenKeyTarget target;
|
||||
private float _weight;
|
||||
|
||||
Reference in New Issue
Block a user