Ejemplo n.º 1
0
 public void OnEnable()
 {
     m_Target = target as CoherentUIGTView;
     m_Fields = CoherentUIGTExposeProperties.GetProperties(m_Target);
     m_ButtonContentEnabled = new GUIContent("Open in Coherent Editor",
                                             "Edit this page in Coherent Editor");
     m_ButtonContentDisabled = new GUIContent("Open in Coherent Editor",
                                              "Only local coui resources can be edited in Coherent Editor");
 }
    public override void OnInspectorGUI()
    {
        if (m_Target == null)
        {
            return;
        }

        this.DrawDefaultInspector();
        CoherentUIGTExposeProperties.Expose(m_Fields);
    }
Ejemplo n.º 3
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);
        }
    }
 public void OnEnable()
 {
     m_Target = target as CoherentUIGTLiveGameView;
     m_Fields = CoherentUIGTExposeProperties.GetProperties(m_Target);
 }
Ejemplo n.º 5
0
 public void OnEnable()
 {
     m_Target = target as CoherentUIGTSystem;
     m_Fields = CoherentUIGTExposeProperties.GetProperties(m_Target);
 }