Unityでゲームを作っていると、スクリプトから他の機能を操作したい場面がよく出てきます。 例えば、 Rigidbodyを使って物理的に動かす Animatorを使ってアニメーションを切り替える AudioSourceを使って音を鳴らす 自分で作った別のスクリプトを呼び出す といっ ...
It is automatically injected according to the type of variable, array, and list. If an inherited class also has this attribute, it is injected. The injection method is automatically injected after the ...
普段はUIデザインなどを主にやっていますが、業務でUnityに触る機会があったので、C#関連で躓いたところをまとめています。 自分用のメモなので少し分かりづらい内容になっているかもです。 私のイメージしているComponentと少し違っていました。 GameObjectに ...
if you're a game developer unaware of the power of GetComponent then let me enlighten you a bit with one of THE most powerful and extendable aspects of Unity. GetComponent unlocks a huge amount of ...
Unity Programming: Bad Practices vs Good Practices – Use Dependency Injection Instead of FindObjectOfType or GetComponent In Unity development, how you manage dependencies between components ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する