1.1.2 • Published 6 years ago

@umm/unirx_observabletween v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

What

  • UniRx のインタフェースに則って Tween 処理を行うためのライブラリ

Requirement

  • Unity 2017.x

Install

$ npm install github:umm-projects/unirx_observabletween

Usage

  • 基本のメソッドインタフェースは Tween<T>(T start, T finish, float duration, EaseType easeType, LoopType loopType)
    • Tint, float, Vector2, Vector3 の値を取る
  • 実装済の EaseType は以下の通り
    • Linear
    • InQuadratic
    • OutQuadratic
    • InOutQuadratic
    • InCubic
    • OutCubic
    • InOutCubic
    • InQuartic
    • OutQuartic
    • InOutQuartic
    • InQuintic
    • OutQuintic
    • InOutQuintic
    • InSinusoidal
    • OutSinusoidal
    • InOutSinusoidal
    • InExponential
    • OutExponential
    • InOutExponential
    • InCircular
    • OutCircular
    • InOutCircular
    • InBack
    • OutBack
    • InOutBack
    • InBounce
    • OutBounce
    • InOutBounce
    • InElastic
    • OutElastic
    • InOutElastic
  • 実装済の LoopType は以下の通り
    • None: ループなし
    • Repeat: 同じ Easing を繰り返す
    • PingPong: 同じ Easing を start/finish を入れ替えて繰り返す
    • Mirror: 行きの Easing に対応する帰りの Easing を繰り返す
  • 停止する場合は Tween メソッドが返すストリームに対する購読を Dispose() する

License

Copyright (c) 2017 Tetsuya Mori

Released under the MIT license, see LICENSE.txt