TRACKER 1!!1

Signed-off-by: TRAfoer <lhf190@outlook.com>
This commit is contained in:
2025-12-21 15:00:58 +08:00
parent 826f300f29
commit 7f4e339032
19 changed files with 790 additions and 4855 deletions

View File

@@ -715,7 +715,7 @@ namespace Ichni.Editor
}
#endregion
#region Animation Swaps ()
#region Animation ()
/// <summary>
/// 交换 Displacement 动画值的正负号
/// </summary>
@@ -799,6 +799,32 @@ namespace Ichni.Editor
anim.startValue = -anim.startValue;
}
}
// public static void randomAnimationValue(float range)
// {
// AnimationBase animationBase = inspector.connectedGameElement as AnimationBase;
// if (animationBase == null)
// {
// LogWindow.Log("Please select a AnimationBase first!", Color.red);
// return;
// }
// System.Random random = new System.Random();
// foreach (var property in animationBase.GetType().GetProperties())
// {
// if (property.PropertyType == typeof(FlexibleFloat))
// {
// FlexibleFloat ff = property.GetValue(animationBase) as FlexibleFloat;
// if (ff != null)
// {
// foreach (var anim in ff.animations)
// {
// float randomOffset = (float)(random.NextDouble() * 2 - 1) * range;
// anim.endValue += randomOffset;
// }
// }
// }
// }
// }
#endregion
#region Global Utilities ()