Skip to content

Commit

Permalink
Update: docs
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnulusGames committed May 12, 2024
1 parent 89cb514 commit b6002a2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/articles/en/motion-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down Expand Up @@ -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.
Expand Down
10 changes: 10 additions & 0 deletions docs/articles/ja/motion-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ LMotion.Create(0f, 10f, 2f)

モーションに適用するイージング関数を指定します。

これにはAnimtaionCurveを指定することも可能です。(`Ease.CustomAnimationCurve``WithEase(AnimationCurve)`を使用した際に自動で設定されます。このオプションを`WithEase(Ease)`で指定しないでください。)

#### WithDelay

モーションの開始を指定された秒数だけ遅延させます。`DelayType``SkipValuesDuringDelay`を指定することで挙動を調整できます。
Expand Down Expand Up @@ -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型のモーションにのみ適用可能です。
Expand Down

0 comments on commit b6002a2

Please sign in to comment.