Пример #1
0
    static CustomPostprocessSettings GetUserInterface()
    {
        m_userInterface = Resources.Load("CustomPostprocessSettings") as CustomPostprocessSettings;

        if (m_userInterface == null)
        {
            UnityEngine.Debug.Log("CANNOT FIND CustomPostprocessInspector PREFAB!!!");
            return(null);
        }

        return(m_userInterface);
    }
Пример #2
0
    public override void OnInspectorGUI()
    {
        m_Target = (CustomPostprocessSettings)target;

        GUILayout.BeginHorizontal();
        string ishiger = m_Target.isLower ? "  Yes" : "   No";

        EditorGUILayout.LabelField("Is Xcode Version < 7 ?");
        m_Target.isLower = EditorGUILayout.ToggleLeft(ishiger, m_Target.isLower);
        GUILayout.EndHorizontal();

        DrawSplitterLine(1f);

        m_Target.m_buildSettingsFoldOut = EditorGUILayout.Foldout(m_Target.m_buildSettingsFoldOut, "BUILD SETTINGS", CustomGUILayout.FoldHeaderStyle());
        if (m_Target.m_buildSettingsFoldOut)
        {
            BuilsSettings();
        }

        DrawSplitterLine(4f);

        m_Target.m_buildPhasesFoldOut = EditorGUILayout.Foldout(m_Target.m_buildPhasesFoldOut, "BUILD PHASES", CustomGUILayout.FoldHeaderStyle());
        if (m_Target.m_buildPhasesFoldOut)
        {
            BuildPhases();
        }

        DrawSplitterLine(4f);

        m_Target.m_otherSettingsFoldOut = EditorGUILayout.Foldout(m_Target.m_otherSettingsFoldOut, "OTHER SETTINGS", CustomGUILayout.FoldHeaderStyle());
        if (m_Target.m_otherSettingsFoldOut)
        {
            OtherSettings();
        }

        DrawSplitterLine(4f);

        m_Target.m_infoPlistFoldOut = EditorGUILayout.Foldout(m_Target.m_infoPlistFoldOut, "INFO PLIST", CustomGUILayout.FoldHeaderStyle());
        if (m_Target.m_infoPlistFoldOut)
        {
            InfoPlist();
        }

        if (GUI.changed)
        {
            EditorUtility.SetDirty(m_Target);
        }
    }