private void DrawSelectedBrushMask() { if (data.brushMask == null) { EditorGUILayout.HelpBox("没有笔刷!", MessageType.Info); } else { EditorGUILayout.BeginVertical("box"); if (GUILayout.Button(new GUIContent(data.brushMask), GUILayout.Width(64), GUILayout.Height(64), GUILayout.ExpandWidth(true))) { GrassAssetWindow.ShowGrassAssetWindow(); } GUILayout.Height(10); EditorGUILayout.LabelField(data.brushMask.name); EditorGUILayout.EndVertical(); } }
public static void ShowGrassAssetWindow() { instance = (GrassAssetWindow)EditorWindow.GetWindow(typeof(GrassAssetWindow)); instance.titleContent = new GUIContent("GrassEditorAsset"); instance.Show(); }