Added new KeywordEnumTypeDrawer;

Added new method to use generic to add ui scope
This commit is contained in:
2025-08-17 13:01:40 +09:00
parent 86f0bf639c
commit 8250bc128d
9 changed files with 143 additions and 6 deletions

View File

@@ -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;
}