#if MA_VRCSDK3_AVATARS && UNITY_2022_1_OR_NEWER using System; using UnityEditor; using UnityEditor.UIElements; using UnityEngine; using UnityEngine.UIElements; namespace nadena.dev.modular_avatar.core.editor.Parameters { [CustomPropertyDrawer(typeof(ParameterConfig))] internal class ParameterConfigDrawer : PropertyDrawer { public override VisualElement CreatePropertyGUI(SerializedProperty property) { var rootPath = "Packages/nadena.dev.modular-avatar/Editor/Inspector/Parameters"; var uss = AssetDatabase.LoadAssetAtPath(rootPath + "/Parameters.uss"); var uxml = AssetDatabase.LoadAssetAtPath(rootPath + "/ParameterConfigDrawer.uxml"); var root = uxml.CloneTree(); Localization.UI.Localize(root); root.styleSheets.Add(uss); var foldout = root.Q(); var foldoutLabel = foldout?.Q