Exemplo n.º 1
0
    public override void OnInspectorGUI()
    {
        TableBase <T> pTarget = target as TableBase <T>;

        if (pTarget == null)
        {
            return;                  // For Disable ReSharper
        }
        pTextAsset = (TextAsset)EditorGUILayout.ObjectField("Raw Data(.csv)", pTextAsset, typeof(TextAsset), false);

        GUI.enabled = pTextAsset != null;
        {
            if (GUILayout.Button("ProcessInsert Raw Data"))
            {
                pTarget.DoInsert(pTextAsset?.text);
            }
        }
        GUI.enabled = true;

        if (GUILayout.Button("Clear"))
        {
            // ������� �߰��ؾ���
            pTarget.DoClear();
        }

        base.OnInspectorGUI();
    }