ソースコード
使い方
using UnityEngine; public class Example : MonoBehaviour { [GetComponent] public Transform transform; [GetComponent] public Example example; }
スポイトボタンを押すと、
ゲームオブジェクトから対象のコンポーネントを GetComponent します
using UnityEngine; public class Example : MonoBehaviour { [GetComponent] public Transform transform; [GetComponent] public Example example; }
スポイトボタンを押すと、
ゲームオブジェクトから対象のコンポーネントを GetComponent します