1.8.4: Added PopupFromScriptableObjectType
This commit is contained in:
parent
3259b62387
commit
81906d49dd
12 changed files with 202 additions and 1 deletions
|
|
@ -7,6 +7,7 @@ namespace Module.Inspector.Editor.Utilities
|
|||
{
|
||||
private static GUIContent CONTENT_WARNING;
|
||||
private static GUIContent CONTENT_ERROR;
|
||||
private static GUIContent CONTENT_OBJECT;
|
||||
|
||||
private static GUIContent GetWarningIconContent()
|
||||
{
|
||||
|
|
@ -23,6 +24,14 @@ namespace Module.Inspector.Editor.Utilities
|
|||
|
||||
return CONTENT_ERROR;
|
||||
}
|
||||
|
||||
public static GUIContent GetScriptableObjectIconContent()
|
||||
{
|
||||
if (CONTENT_ERROR == null)
|
||||
CONTENT_ERROR = EditorGUIUtility.IconContent("d_ScriptableObject Icon");
|
||||
|
||||
return CONTENT_ERROR;
|
||||
}
|
||||
|
||||
public static void SetWarningIcon(GUIContent content)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue