LoginSignup
0
0

More than 1 year has passed since last update.

【Unity】オブジェクト生成

Posted at

#目次

  • プレファブを作成する。

  • Script上に、パブリックなオブジェクトの変数 obj を追加する。
    public GameObject obj;

  • プレファブをスクリプト上の変数と関連付ける

  • コード上、Instance(A) ;

  • そのほかの使い方

Instance( A, 位置)
Instance( A, 位置, 親)

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