diff --git a/Editor/UI/AvatarConfigEditor/AvatarConfigEditor.cs b/Editor/UI/AvatarConfigEditor/AvatarConfigEditor.cs new file mode 100644 index 00000000..e40fbf89 --- /dev/null +++ b/Editor/UI/AvatarConfigEditor/AvatarConfigEditor.cs @@ -0,0 +1,306 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using UnityEditor; +using UnityEditor.UIElements; +using UnityEngine; +using UnityEngine.UIElements; + +namespace ReadyPlayerMe.Core.Editor +{ + [CustomEditor(typeof(AvatarConfig))] + public class AvatarConfigEditor : UnityEditor.Editor + { + private const string DIALOG_TITLE = "Read Player Me"; + private const string DIALOG_MESSAGE = "Do you want to install {0} Unity Package: {1} ?"; + private const string DIALOG_OK = "Ok"; + private const string DIALOG_CANCEL = "Cancel"; + private const string ADD_MORPH_TARGET = "Add Morph Target"; + private const string DELETE_MORPH_TARGET = "Delete Morph Target"; + private const string REMOVE_BUTTON_TEXT = "Remove"; + private const string MESH_OPT_PACKAGE_NAME = "com.unity.meshopt.decompress"; + + [SerializeField] private VisualTreeAsset visualTreeAsset; + + private AvatarConfig avatarConfigTarget; + private List