Add unity 6.0 support
All checks were successful
Publish to Private NPM Registry / publish (push) Successful in 1m31s
All checks were successful
Publish to Private NPM Registry / publish (push) Successful in 1m31s
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user