您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
32 行
897 B
32 行
897 B
|
|
|
|
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
namespace Unity.Entities.Editor
|
|
{
|
|
internal static class EntityDebuggerStyles
|
|
{
|
|
|
|
public static GUIStyle ComponentRequired => StyleAsset.styles[0];
|
|
public static GUIStyle ComponentExclude => StyleAsset.styles[1];
|
|
public static GUIStyle ComponentReadOnly => StyleAsset.styles[2];
|
|
public static GUIStyle ComponentReadWrite => StyleAsset.styles[3];
|
|
|
|
private static GUIStyleAsset StyleAsset
|
|
{
|
|
get
|
|
{
|
|
if (!styleAsset)
|
|
{
|
|
styleAsset = AssetDatabase.LoadAssetAtPath<GUIStyleAsset>(
|
|
"Packages/com.unity.entities/Unity.Entities.Editor/Resources/EntityDebuggerStyles.asset");
|
|
}
|
|
|
|
return styleAsset;
|
|
}
|
|
}
|
|
|
|
private static GUIStyleAsset styleAsset;
|
|
}
|
|
}
|