Added new KeywordEnumTypeDrawer;
Added new method to use generic to add ui scope
This commit is contained in:
@@ -28,7 +28,7 @@ namespace Misaki.ShaderGUI
|
||||
{
|
||||
if (!IsPropertyTypeSuitable(prop))
|
||||
{
|
||||
var c = EditorGUIUtility.TrTempContent("Toggle used on a non-float property: " + prop.name);
|
||||
var c = EditorGUIUtility.TrTempContent($"Enum flags used on a property {prop.name} with unsupported type: {prop.propertyType}");
|
||||
EditorGUI.LabelField(position, c, EditorStyles.helpBox);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user