Add unity 6.0 support
All checks were successful
Publish to Private NPM Registry / publish (push) Successful in 1m31s

This commit is contained in:
2025-12-01 21:47:32 +09:00
parent 8250bc128d
commit 77312afe86
4 changed files with 37 additions and 3 deletions

View File

@@ -28,7 +28,11 @@ namespace Misaki.ShaderGUI
{
if (!IsPropertyTypeSuitable(prop))
{
#if UNITY_6000_1_OR_NEWER
var c = EditorGUIUtility.TrTempContent($"Enum flags used on a property {prop.name} with unsupported type: {prop.propertyType}");
#else
var c = EditorGUIUtility.TrTempContent($"Enum flags used on a property {prop.name} with unsupported type: {prop.type}");
#endif
EditorGUI.LabelField(position, c, EditorStyles.helpBox);
return;
}

View File

@@ -65,7 +65,11 @@ namespace Misaki.ShaderGUI
{
if (!IsPropertyTypeSuitable(prop))
{
#if UNITY_6000_1_OR_NEWER
var c = EditorGUIUtility.TrTempContent(($"Keyword enum type used on a property {prop.name} with unsupported type: {prop.propertyType}"));
#else
var c = EditorGUIUtility.TrTempContent(($"Keyword enum type used on a property {prop.name} with unsupported type: {prop.type}"));
#endif
EditorGUI.LabelField(position, c, EditorStyles.helpBox);
return;
}