summaryrefslogtreecommitdiffstats
path: root/Scripts/YOTSCore.cs
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2026-03-08 17:39:19 -0700
committeryum <yum.food.vr@gmail.com>2026-03-08 17:39:19 -0700
commit161ccbaa357cacbaaf5d2ab715250bd69f3fc202 (patch)
treec3d16122a2cd8cfb3afe7d018ddb6d86457cfccb /Scripts/YOTSCore.cs
parent415b951d72ddaa946c923007c3b9e40b3bb43554 (diff)
Implement object sets feature
Diffstat (limited to 'Scripts/YOTSCore.cs')
-rw-r--r--Scripts/YOTSCore.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/Scripts/YOTSCore.cs b/Scripts/YOTSCore.cs
index f32bdfa..c5cd5dc 100644
--- a/Scripts/YOTSCore.cs
+++ b/Scripts/YOTSCore.cs
@@ -143,6 +143,10 @@ namespace YOTS
[SerializeField]
public List<string> paths = new List<string>();
+ // Names of object sets to use as paths.
+ [SerializeField]
+ public List<string> sets = new List<string>();
+
// The value of the blendshape when the toggle is off. Range from 0-100.
[SerializeField]
public float offValue = 0.0f;
@@ -163,6 +167,10 @@ namespace YOTS
[SerializeField]
public List<string> paths = new List<string>();
+ // Names of object sets to use as paths.
+ [SerializeField]
+ public List<string> sets = new List<string>();
+
[SerializeField]
public float offValue = 0.0f;
@@ -186,8 +194,20 @@ namespace YOTS
}
[System.Serializable]
+ public class ObjectSet {
+ [SerializeField]
+ public string name;
+
+ [SerializeField]
+ public List<string> objects = new List<string>();
+ }
+
+ [System.Serializable]
public class AnimatorConfigFile {
[SerializeField]
+ public List<ObjectSet> objectSets = new List<ObjectSet>();
+
+ [SerializeField]
public List<ToggleSpec> toggles = new List<ToggleSpec>();
[SerializeField]