diff --git a/RasterPropMonitor/Auxiliary modules/JSICallbackAnimator.cs b/RasterPropMonitor/Auxiliary modules/JSICallbackAnimator.cs index 28df8cc8..f5a3292f 100644 --- a/RasterPropMonitor/Auxiliary modules/JSICallbackAnimator.cs +++ b/RasterPropMonitor/Auxiliary modules/JSICallbackAnimator.cs @@ -50,7 +50,7 @@ public override void OnLoad(ConfigNode node) { try { - var variableSet = ScriptableObject.CreateInstance(); + var variableSet = gameObject.AddComponent(); variableSet.Load(variableNodes[i], internalProp); variableSets.Add(variableSet); } @@ -191,7 +191,7 @@ public bool NotifyTransformBatched(Transform transform) /// independent range of enabling values, but it depends on the parent /// JSICallback class to control what variable is tracked. /// - public class CallbackAnimationSet : ScriptableObject + public class CallbackAnimationSet : MonoBehaviour { [SerializeField] private string scaleRangeMin, scaleRangeMax; [SerializeField] private bool reverse;