您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
25 行
750 B
25 行
750 B
using UnityEngine;
|
|
|
|
namespace Unity.Entities.Editor
|
|
{
|
|
public static class GUIHelpers {
|
|
|
|
public static void ShowCenteredNotification(Rect area, string message)
|
|
{
|
|
GUILayout.BeginArea(area);
|
|
GUILayout.FlexibleSpace();
|
|
GUILayout.BeginHorizontal();
|
|
GUILayout.FlexibleSpace();
|
|
GUILayout.Label(message);
|
|
GUILayout.FlexibleSpace();
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.FlexibleSpace();
|
|
GUILayout.EndArea();
|
|
}
|
|
|
|
public static Rect GetExpandingRect()
|
|
{
|
|
return GUILayoutUtility.GetRect(GUIContent.none, GUIStyle.none, GUILayout.ExpandHeight(true), GUILayout.ExpandWidth(true));
|
|
}
|
|
}
|
|
}
|