add LiveSheet Support

This commit is contained in:
1605296300@qq.com
2022-09-03 13:55:00 +08:00
parent aebef9b584
commit 8eafe19956
17 changed files with 2056 additions and 1608 deletions
@@ -33,7 +33,7 @@ namespace Gallop
FacialMorph morph = new FacialMorph();
morph.target = this;
morph.direction = j > 0;
morph.name = "EyeBrow_" + i + "_" + (morph.direction ? "R" : "L");
morph.name = "EyeBrow_" + i + "_" + (morph.direction ? "L" : "R");
morph.trsArray = _eyebrowTarget[i]._faceGroupInfo[j]._trsArray;
foreach (TrsArray trs in morph.trsArray)
{
@@ -58,7 +58,7 @@ namespace Gallop
FacialMorph morph = new FacialMorph();
morph.target = this;
morph.direction = j > 0;
morph.name = "Eye_" + i + "_" + (morph.direction ? "R" : "L");
morph.name = "Eye_" + i + "_" + (morph.direction ? "L" : "R");
morph.trsArray = _eyeTarget[i]._faceGroupInfo[j]._trsArray;
foreach (TrsArray trs in morph.trsArray)
{
@@ -129,9 +129,9 @@ namespace Gallop
{
if (trs.transform)
{
trs.transform.localPosition += trs._position * morph.Weight;
trs.transform.localScale += trs._scale * morph.Weight;
trs.transform.localRotation = Quaternion.Euler(trs.transform.localRotation.eulerAngles + (trs._rotation * morph.Weight));
trs.transform.localPosition += trs._position * morph.Weight;
trs.transform.localEulerAngles += trs._rotation * morph.Weight;
};
}
}
@@ -145,7 +145,7 @@ namespace Gallop
trs.transform.localPosition = trs._position;
trs.transform.localScale = trs._scale;
trs.transform.localRotation = Quaternion.Euler(trs._rotation);
trs.transform.localEulerAngles = trs._rotation;
};
}
@@ -156,7 +156,7 @@ namespace Gallop
trs.transform.localPosition = trs._position;
trs.transform.localScale = trs._scale;
trs.transform.localRotation = Quaternion.Euler(trs._rotation);
trs.transform.localEulerAngles = trs._rotation;
};
}
@@ -167,7 +167,7 @@ namespace Gallop
trs.transform.localPosition = trs._position;
trs.transform.localScale = trs._scale;
trs.transform.localRotation = Quaternion.Euler(trs._rotation);
trs.transform.localEulerAngles = trs._rotation;
};
}
@@ -178,7 +178,7 @@ namespace Gallop
trs.transform.localPosition = trs._position;
trs.transform.localScale = trs._scale;
trs.transform.localRotation = Quaternion.Euler(trs._rotation);
trs.transform.localEulerAngles = trs._rotation;
};
}
@@ -189,7 +189,7 @@ namespace Gallop
trs.transform.localPosition = trs._position;
trs.transform.localScale = trs._scale;
trs.transform.localRotation = Quaternion.Euler(trs._rotation);
trs.transform.localEulerAngles = trs._rotation;
};
}
}
+2 -2
View File
@@ -25,7 +25,7 @@ namespace Gallop
_weight = value;
target.ChangeMorph();
}
}
[HideInInspector] public List<TrsArray> trsArray;
}
public List<TrsArray> trsArray;
}
}
+1 -1
View File
@@ -144,4 +144,4 @@ public class ConnectedBoneData
public string Bone2;
public float Intensity;
public bool IsFold;
}
}
@@ -0,0 +1,9 @@
using UnityEngine;
namespace Gallop.Live.Cutt
{
public class LiveTimelineWorkSheet:MonoBehaviour
{
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 943ab4ac9c3e4a340993be3e75bf6172
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: