public override void OnInspectorGUI()
    {
        if (m_Target == null)
        {
            return;
        }

        this.DrawDefaultInspector();
        CoherentUIGTExposeProperties.Expose(m_Fields);
    }
Exemplo n.º 2
0
    public override void OnInspectorGUI()
    {
        if (m_Target == null)
        {
            return;
        }

        this.DrawDefaultInspector();
        CoherentUIGTExposeProperties.Expose(m_Fields);

        GUI.enabled = m_Target.Page.StartsWith("coui://uiresources/");
        if (GUILayout.Button(GUI.enabled ? m_ButtonContentEnabled :
                             m_ButtonContentDisabled))
        {
            CoherentUIGTEditorMenu.LaunchCoherentEditorWithURL(m_Target.Page);
        }
    }