便利なGetComponentに潜むワナについてのお話です。 「GetComponentをぶん回す」とは GetComponentをUpdate関数内で毎フレーム呼び出す、または繰り返し処理の中で使用するなど、GetComponentを大量に呼び出すことを指しています。ただし、GetComponentをぶん回すなんて ...
in unity scripts r considered as a custom component. v can ccess the other scripts and components using GetComponent. in Awake() - we initialized our variables. later v access the script using ...
しるふぁ「では前回のつづきから。新しく追加したplayerShot()関数と、PlayerBulletスクリプトの解説をしますね。」 アロナ「はい、よろしくお願いします!」 しるふぁ「今回の要となるのは、あらかじめオブジェクトのプレファブ(雛形)を作っておいて ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する