Exemplo n.º 1
0
    void OnGUI()
    {
        SetGUIStyles();

        BEditorGUI.DrawWindowBanner(bannerColor, bannerText, helpURL);

        GUILayout.BeginHorizontal();
        GUILayout.Space(20);

        GUILayout.BeginVertical();

#if UNITY_2019_3_OR_NEWER
        DrawRenderPipelineSelection();
        GetRenderPipelinePackagePath();
        DrawRenderPipelineButton();
#else
        EditorGUILayout.HelpBox("The Render Pipeline can be selected only in Unity 2019.3 or newer!", MessageType.Info);
#endif

        GUILayout.EndVertical();

        GUILayout.Space(13);
        GUILayout.EndHorizontal();

        GUILayout.BeginVertical();
        GUILayout.FlexibleSpace();

        BEditorGUI.DrawLogo();

        GUILayout.FlexibleSpace();
        GUILayout.Space(20);
        GUILayout.EndVertical();
    }
Exemplo n.º 2
0
    void OnGUI()
    {
        SetGUIStyles();

        BEditorGUI.DrawWindowBanner(bannerColor, bannerText, helpURL);

        GUILayout.BeginHorizontal();
        GUILayout.Space(20);

        GUILayout.BeginVertical();

#if UNITY_2019_3_OR_NEWER
        GUI.enabled = true;
#else
        GUI.enabled = false;
#endif

        DrawRenderPipelineSelection();
        GetRenderPipelinePackagePath();
        DrawRenderPipelineButton();

        GUI.enabled = true;

        GUILayout.EndVertical();

        GUILayout.Space(13);
        GUILayout.EndHorizontal();

        GUILayout.BeginVertical();
        GUILayout.FlexibleSpace();

        BEditorGUI.DrawLogo();

        GUILayout.FlexibleSpace();
        GUILayout.Space(20);
        GUILayout.EndVertical();
    }