1.8.4: Added PopupFromScriptableObjectType

This commit is contained in:
Anders Ejlersen 2023-12-09 22:38:27 +01:00
parent 3259b62387
commit 81906d49dd
12 changed files with 202 additions and 1 deletions

View file

@ -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)
{