mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-01 20:25:07 +08:00
2ad324380e
Fixes: #588, #589
29 lines
878 B
C#
29 lines
878 B
C#
using UnityEditor;
|
|
using static nadena.dev.modular_avatar.core.editor.Localization;
|
|
|
|
namespace nadena.dev.modular_avatar.core.editor
|
|
{
|
|
[CustomEditor(typeof(ModularAvatarScaleAdjuster))]
|
|
[CanEditMultipleObjects]
|
|
internal class ScaleAdjusterInspector : MAEditorBase
|
|
{
|
|
private SerializedProperty _scale;
|
|
|
|
protected void OnEnable()
|
|
{
|
|
_scale = serializedObject.FindProperty("m_Scale");
|
|
}
|
|
|
|
protected override void OnInnerInspectorGUI()
|
|
{
|
|
EditorGUILayout.PropertyField(_scale, G("scale_adjuster.scale"));
|
|
|
|
ScaleAdjusterTool.AdjustChildPositions = EditorGUILayout.Toggle(G("scale_adjuster.adjust_children"),
|
|
ScaleAdjusterTool.AdjustChildPositions);
|
|
|
|
serializedObject.ApplyModifiedProperties();
|
|
|
|
Localization.ShowLanguageUI();
|
|
}
|
|
}
|
|
} |