コード例 #1
0
 private void OnEnable()
 {
     if (!data)
     {
         data    = GetData();
         content = data.content;
     }
 }
コード例 #2
0
    private void OnEnable()
    {
        if (!data)
        {
            data = GetData();
        }
        data.InitializeData();
        content = data.content;

        if (!skin)
        {
            skin = AssetDatabase.LoadAssetAtPath <GUISkin>("Assets/InspectorHistory/Resources/InspectorHistorySkin.guiskin");
        }
        if (buttonStyle == null)
        {
            buttonStyle = skin.GetStyle("button");
        }
    }