From d016931beda54c2481ce97e082b7273ecb5c8fe5 Mon Sep 17 00:00:00 2001 From: recharge-sp Date: Tue, 24 Sep 2024 22:57:33 +0800 Subject: [PATCH] Scenecontrol: Fix trigger easing not being serialized --- .../Gameplay/Scenecontrol/Channels/Triggers/JudgementTrigger.cs | 1 + .../Gameplay/Scenecontrol/Channels/Triggers/ObserveTrigger.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/Assets/Scripts/Gameplay/Scenecontrol/Channels/Triggers/JudgementTrigger.cs b/Assets/Scripts/Gameplay/Scenecontrol/Channels/Triggers/JudgementTrigger.cs index d89547b7..7369fb8a 100644 --- a/Assets/Scripts/Gameplay/Scenecontrol/Channels/Triggers/JudgementTrigger.cs +++ b/Assets/Scripts/Gameplay/Scenecontrol/Channels/Triggers/JudgementTrigger.cs @@ -122,6 +122,7 @@ public JudgementTrigger Dispatch( Value = value, Duration = duration ?? ValueChannel.ConstantOneChannel, Easing = Easing.FromString(easing), + EasingString = easing, }; return this; diff --git a/Assets/Scripts/Gameplay/Scenecontrol/Channels/Triggers/ObserveTrigger.cs b/Assets/Scripts/Gameplay/Scenecontrol/Channels/Triggers/ObserveTrigger.cs index 48e16c4a..cde6e9ff 100644 --- a/Assets/Scripts/Gameplay/Scenecontrol/Channels/Triggers/ObserveTrigger.cs +++ b/Assets/Scripts/Gameplay/Scenecontrol/Channels/Triggers/ObserveTrigger.cs @@ -71,6 +71,7 @@ public ObserveTrigger Dispatch( Value = value, Duration = duration ?? ValueChannel.ConstantOneChannel, Easing = Easing.FromString(easing), + EasingString = easing, }; return this;