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


【Unity】【Odin Inspector 2.0 新機能】static 変数やプロパティの値を Inspector に表示できる「ShowInInspector」

アセット

概要

using Sirenix.OdinInspector;
using UnityEngine;

public class Example : MonoBehaviour
{
    [ShowInInspector]
    private static string m_hoge;

    [ShowInInspector]
    private static string m_fuga { get { return "ライチュウ"; } }
}

f:id:baba_s:20180814152148p:plain

「ShowInInspector」属性を使用することで
static 変数やプロパティの値を Inspector に表示できます

参考サイト様




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

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