Files
Cielonos/Assets/Scripts/SLSUtilities/Feedback/Base/FeedbackTimeSettings.cs
2026-04-18 13:57:19 -04:00

37 lines
1.1 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using Sirenix.OdinInspector;
using UnityEngine;
using UnityEngine.Serialization;
namespace SLSUtilities.Feedback
{
/// <summary>
/// 时间设置数据结构,控制 Feedback 的时间缩放来源。
/// 同时存在于 FeedbackData全局默认和 FeedbackClip单元覆盖两个层级。
/// Clip 级设置如果 useTimeScale = true 则覆盖 Data 级设置。
/// </summary>
[Serializable]
public partial class FeedbackTimeSettings
{
[EnumButtons]
public TimeScaleType timeScaleType = TimeScaleType.Global;
[FormerlySerializedAs("useDynamicTimeScale")]
[Tooltip("是否动态获取当前的时间缩放。启用后FeedbackPlayer 每帧计算当前综合时间缩放系数并传递给 FeedbackAction。")]
[HideIf("timeScaleType", TimeScaleType.Unscaled)]
[LabelText("Apply Dynamic")]
public bool applyDynamicTimeScale = true;
}
public partial class FeedbackTimeSettings
{
public enum TimeScaleType
{
Unscaled = 0,
Global = 1,
Group = 2,
Local = 3
}
}
}