以下の内容はhttps://baba-s.hatenablog.com/entry/2018/01/18/133300より取得しました。


【Unity】Inspector のパラメータの欄に GetComponent ボタンを追加する Attribute

ソースコード

使い方

using UnityEngine;

public class Example : MonoBehaviour
{
    [GetComponent] public Transform transform;
    [GetComponent] public Example example;
}

f:id:baba_s:20180118130336p:plain

スポイトボタンを押すと、
ゲームオブジェクトから対象のコンポーネントを GetComponent します




以上の内容はhttps://baba-s.hatenablog.com/entry/2018/01/18/133300より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14