#if MODULE_UITK && UNITY_2023_3_OR_NEWER using UnityEditor.UIElements; using UnityEditor; using UnityEngine.UIElements; using UnityEngine.Localization.SmartFormat.PersistentVariables; using UnityEditor.Localization.UI; [CustomPropertyDrawer(typeof(Variable<>.UxmlSerializedData), true)] class PersistentVariableUxmlSerializedDataPropertyDrawer : PropertyDrawer { public override VisualElement CreatePropertyGUI(SerializedProperty property) { var value = property.FindPropertyRelative(nameof(Variable.ValueUXML)); return new PropertyField(value, ManagedReferenceUtility.GetDisplayName(property.managedReferenceFullTypename).text); } } #endif