From b6002a25d18b889216d886ee787fe1878e66be00 Mon Sep 17 00:00:00 2001 From: AnnulusGames Date: Sun, 12 May 2024 20:43:43 +0900 Subject: [PATCH] Update: docs --- docs/articles/en/motion-configuration.md | 10 ++++++++++ docs/articles/ja/motion-configuration.md | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/docs/articles/en/motion-configuration.md b/docs/articles/en/motion-configuration.md index 1215058..29d5381 100644 --- a/docs/articles/en/motion-configuration.md +++ b/docs/articles/en/motion-configuration.md @@ -18,6 +18,8 @@ LMotion.Create(0f, 10f, 2f) Specifies the easing function to apply to the motion. +You can also specify AnimtaionCurve for this. (`Ease.CustomAnimationCurve` is automatically set when using `WithEase(AnimationCurve)`. Do not specify this option with `WithEase(Ease)`.) + #### WithDelay Delay the start of a motion by a specified number of seconds. You can adjust the behavior by specifying `DelayType` and `SkipValuesDuringDelay`. @@ -87,6 +89,14 @@ Specifies the Scheduler used for motion playback. | MotionScheduler.Manual | Updates manually. For details, see [Updating Motion Manually](updating-motion-manually.md). | | EditorMotionScheduler.Update (LitMotion.Editor) | Updates at the EditorApplication.update timing. This Scheduler is limited to the editor. | +#### WithCancelOnError + +Cancels the motion when an uncaught exception occurs within the motion's `Bind` function. It is set to false by default. + +#### WithBindOnSchedule + +Execute Bind processing at the timing of scheduling the motion. It is set to false by default. + #### WithRoundingMode (int) Sets the rounding mode for decimal values. This option is only applicable to int-type motions. diff --git a/docs/articles/ja/motion-configuration.md b/docs/articles/ja/motion-configuration.md index a337929..3d254fb 100644 --- a/docs/articles/ja/motion-configuration.md +++ b/docs/articles/ja/motion-configuration.md @@ -19,6 +19,8 @@ LMotion.Create(0f, 10f, 2f) モーションに適用するイージング関数を指定します。 +これにはAnimtaionCurveを指定することも可能です。(`Ease.CustomAnimationCurve`は`WithEase(AnimationCurve)`を使用した際に自動で設定されます。このオプションを`WithEase(Ease)`で指定しないでください。) + #### WithDelay モーションの開始を指定された秒数だけ遅延させます。`DelayType`や`SkipValuesDuringDelay`を指定することで挙動を調整できます。 @@ -89,6 +91,14 @@ LMotion.Create(0f, 10f, 2f) | MotionScheduler.Manual | 更新を手動で行います。詳細は[モーションを手動で更新する](updating-motion-manually.md)を参照してください。 | | EditorMotionScheduler.Update (LitMotion.Editor) | EditorApplication.updateのタイミングで更新を行います。このSchedulerはエディタ限定で使用できます。 | +#### WithCancelOnError + +モーションの`Bind`関数内でcatchされていない例外が発生した際にモーションをキャンセルします。デフォルトではfalseに設定されています。 + +#### WithBindOnSchedule + +モーションをスケジュールするタイミングでBindの処理を実行します。デフォルトではfalseに設定されています。 + #### WithRoundingMode (int, long) 小数点以下の値の丸め方を設定します。このオプションはint型のモーションにのみ適用可能です。