fix: there is a compilation error in Unity 2019.2 or earlier

close #407
This commit is contained in:
mob-sakai
2026-06-24 11:04:23 +09:00
parent 25b2e3b632
commit c327632e1e
7 changed files with 133 additions and 6 deletions

View File

@@ -13,9 +13,7 @@ using Object = UnityEngine.Object;
#if UNITY_2021_2_OR_NEWER
using UnityEditor.Overlays;
#else
using System;
using System.Reflection;
using Object = UnityEngine.Object;
#endif
#if UNITY_2021_2_OR_NEWER
using UnityEditor.SceneManagement;
@@ -207,7 +205,10 @@ namespace Coffee.UIExtensions
serializedObject.Update();
// Maskable
EditorGUILayout.PropertyField(_maskable);
if (_maskable != null)
{
EditorGUILayout.PropertyField(_maskable);
}
// Scale
EditorGUI.BeginDisabledGroup(!_meshSharing.hasMultipleDifferentValues && _meshSharing.intValue == 4);