2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Unity Inspectorの配列変数に複数ファイル一度で登録する

Posted at

初めに

配列変数で一度にスプライトを登録したい。
けど。一つずつ登録してはめんどうだ。。
って事で色々調べてみた。
image.png

Unity Editor機能がすげ。。。(結論)

元から機能がありました。
簡単に言うと、登録したいものを複数選択してドラックアンドドロップするだけでした。。

ただ、ちょっと面倒なので。。。ちょっと説明

Projectウィンドウでオブジェクトを選択すると、インスペクタが変わってしまいます。
Animation01.gif

なので、スクリプトが設定されているオブジェクトををロックします。
Animation02.gif

ロックされたオブジェクトにスプライト複数選択して、ドラックアンドドロップ!
Animation03.gif

最後に

今回は、何かプログラムも組むまでも無く、Unity Editorの機能をうまく使う方法でした。
まだ、知らない機能がたくさんありそうです。。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?