protected virtual void OnGUI()
 {
     EditorGUILayout.LabelField(Title);
     EditorGUILayout.LabelField(Description);
     if (GUILayout.Button("查看代码"))
     {
         SEditorUtility.GoToPath(FilePath);
     }
     SEditorGUILayout.HLine(1, Color.gray);
     EditorGUILayout.Space();
 }
Beispiel #2
0
    private void OnGUI()
    {
        EditorGUILayout.LabelField("这是继承自SBaseEditorWindow");
        EditorGUILayout.LabelField("扩展了初次设置初次打开的大小");
        if (GUILayout.Button("查看代码"))
        {
            SEditorUtility.GoToPath("Assets/Scripts/Editor/Samples/InheritCustomWindow.cs");
        }


        EditorGUILayout.LabelField("横线");
        SEditorGUILayout.HLine(1, Color.gray);

        EditorGUILayout.LabelField("进度条");
        SEditorGUILayout.HLine(3, Color.green, tempTime / 600f);
    }