LoginSignup
1
1

More than 5 years have passed since last update.

DOTWeen記事まとめ

Last updated at Posted at 2016-12-14

初級

簡単!スクリプトでアニメーション

[Unity ]簡単!スクリプトでアニメーション2 UIのScale

おすすめサイト

アニメーションをつなげたり,同時にやりたい場合はここのSequenceを参考に
https://anz-note.tumblr.com/post/145405933481/unitydotween%E3%82%81%E3%83%BC%E3%82%82)

いろんなアニメーションが学べる
http://www.shibuya24.info/entry/2015/08/26/090000

UIの座標を移動する場合

UIの場合はtransformではなく,RectTransformなのでこちらのやり方がより良いです.

  1. 上部メニューのTools -> DoTweenなんちゃら
  2. Setupボタンを押す => 使えるアニメーションの種類が増える
  3. 以下のような形で実装
private RectTransform rectTransform;

void Start(){
    // UIはtransformではなく,RectTransformを使う
    rectTransform = this.GetComponent<RectTransform>();

    // AnchorPosで位置を設定  PosXとPosYに対応
    rectTransform.DOAnchorPos(new Vector2(20f, 0), 0.3f);
}

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1