LoginSignup
0
1

More than 3 years have passed since last update.

unityでノンコーディングでオブジェクトを動かしたいとき

Posted at

Animationコンポーネントを使います。
Animationコンポーネントがハジメマシテの方は、初回は大変ですが、一度試して、いくつかオブジェクトを動かせば慣れるのではないかと!!


動かしたいオブジェクトに、インスペクターウィンドウでAnimationを検索してAddする。
a01.png

Animationウィンドウを開く。
a02.png

ウィンドウ右側に[create]というボタンがあるので、それを押下する。
a02a.png

保存ダイアログが出てくるので、適当な名前を入力する。
a03.png

アセット内にこういうのができる
a04.png

録画ボタンを押す。
a05.png

最初のpositionを入力する。(これが0秒目。初期位置)
a06.png

フレームを移動する。
移動後のpositionを入力する。(下図スクショだと1秒目。移動後の位置)
a07.png

録画ボタンを再度押下して、停止する。
0秒目に戻す。
アセット内のanimationコンポーネントを、インスペクターウィンドウのAnimationにドラッグアンドドロップする。
a08.png

0
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
0
1