2023-07-30 01:11:21 +08:00
|
|
|
|
using UnityEditor;
|
|
|
|
|
using static nadena.dev.modular_avatar.core.editor.Localization;
|
|
|
|
|
|
|
|
|
|
namespace nadena.dev.modular_avatar.core.editor
|
|
|
|
|
{
|
|
|
|
|
[CustomEditor(typeof(ModularAvatarReplaceObject))]
|
|
|
|
|
internal class ReplaceObjectEditor : MAEditorBase
|
|
|
|
|
{
|
|
|
|
|
private SerializedProperty _targetObject;
|
|
|
|
|
|
|
|
|
|
protected void OnEnable()
|
|
|
|
|
{
|
|
|
|
|
_targetObject = serializedObject.FindProperty("targetObject");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void OnInnerInspectorGUI()
|
|
|
|
|
{
|
2023-08-06 18:33:04 +08:00
|
|
|
|
serializedObject.Update();
|
|
|
|
|
|
2023-07-30 01:11:21 +08:00
|
|
|
|
EditorGUILayout.PropertyField(_targetObject, G("replace_object.target_object"));
|
|
|
|
|
|
|
|
|
|
Localization.ShowLanguageUI();
|
2023-08-06 18:33:04 +08:00
|
|
|
|
|
|
|
|
|
serializedObject.ApplyModifiedProperties();
|
2023-07-30 01:11:21 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|