※別記事で同じ内容をメモ用の短縮版として書きました。忙しい方は以下を参照してみてください 私は最初、インスタンスを取得して AのスクリプトからBのスクリプト内の関数を呼び出したり、変数を取得したい と考え、インスタンス取得を勉強しました。
しるふぁ「では始めましょう!これまでのお話はこちらです。」 こちらが前回動かした、StarBGScrollスクリプトです。星の3重スクロールをするスクリプトです。順番に解説していきます。 using UnityEngine; public class StarBGScroll : MonoBehaviour { [SerializeField] private Sprite ...
This inspection will highlight the [SerializeField] attribute as redundant in the following conditions: This is considered an edge case - it is not viable to detect when the class is only used for ...
Hello! Let's build on the following simple Unity script and improve the inspector experience for it by adding in attributes. using UnityEngine; public class ExampleScript : MonoBehaviour { private ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する