From bddad26c0f84e00781b22f8430b08f589a7b81ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ha=C3=AF=7E?= Date: Sat, 17 Aug 2024 08:03:28 +0200 Subject: [PATCH] Rename AacFlSettingCurveColor.WithKeyframes(...) to WithUnit(...): - Fix inconsistency by renaming AacFlSettingCurveColor.WithKeyframes(...) to WithUnit(...). - The previous method is obsoleted, but remains. --- .../V1/Editor/AacFlAnimations.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Packages/dev.hai-vr.animator-as-code.v1/V1/Editor/AacFlAnimations.cs b/Packages/dev.hai-vr.animator-as-code.v1/V1/Editor/AacFlAnimations.cs index 8d7c3c9..3e17251 100644 --- a/Packages/dev.hai-vr.animator-as-code.v1/V1/Editor/AacFlAnimations.cs +++ b/Packages/dev.hai-vr.animator-as-code.v1/V1/Editor/AacFlAnimations.cs @@ -614,7 +614,16 @@ namespace AnimatorAsCode.V1 } } - public void WithKeyframes(AacFlUnit unit, Action action) // FIXME: Should this be renamed? + /// Obsolete. Use `WithUnit()` instead.
+ /// Start defining the keyframes with a lambda expression, expressing the unit. + [Obsolete("This function was renamed to WithUnit(...)")] + public void WithKeyframes(AacFlUnit unit, Action action) + { + WithUnit(unit, action); + } + + /// Start defining the keyframes with a lambda expression, expressing the unit. + public void WithUnit(AacFlUnit unit, Action action) { var mutatedKeyframesR = new List(); var mutatedKeyframesG = new List();