diff --git a/Editor/EasySetupOutfit.cs b/Editor/EasySetupOutfit.cs index 379112cf..96c54288 100644 --- a/Editor/EasySetupOutfit.cs +++ b/Editor/EasySetupOutfit.cs @@ -73,7 +73,10 @@ namespace nadena.dev.modular_avatar.core.editor foreach (var message in messageGroups) { EditorGUILayout.Space(SeparatorSize); - EditorGUILayout.LabelField(message); + var style = new GUIStyle(EditorStyles.label); + style.wordWrap = true; + + EditorGUILayout.LabelField(message, style); } EditorGUILayout.BeginHorizontal(); @@ -256,11 +259,11 @@ namespace nadena.dev.modular_avatar.core.editor static bool ValidateSetupOutfit() { errorHeader = S("setup_outfit.err.header.notarget"); - errorMessageGroups = new string[] {S("setup_outfit.err.unknown")}; + errorMessageGroups = new string[] { S("setup_outfit.err.unknown") }; if (Selection.objects.Length == 0) { - errorMessageGroups = new string[] {S("setup_outfit.err.no_selection")}; + errorMessageGroups = new string[] { S("setup_outfit.err.no_selection") }; return false; } @@ -284,7 +287,7 @@ namespace nadena.dev.modular_avatar.core.editor if (nearestAvatarTransform == null || nearestAvatarTransform == xform) { errorMessageGroups = new string[] - {S_f("setup_outfit.err.multiple_avatar_descriptors", xform.gameObject.name)}; + { S_f("setup_outfit.err.multiple_avatar_descriptors", xform.gameObject.name) }; return false; } @@ -331,7 +334,9 @@ namespace nadena.dev.modular_avatar.core.editor return false; } - avatarHips = avatarAnimator.isHuman ? avatarAnimator.GetBoneTransform(HumanBodyBones.Hips)?.gameObject : null; + avatarHips = avatarAnimator.isHuman + ? avatarAnimator.GetBoneTransform(HumanBodyBones.Hips)?.gameObject + : null; if (avatarHips == null) { @@ -345,7 +350,9 @@ namespace nadena.dev.modular_avatar.core.editor var outfitAnimator = outfitRoot.GetComponent(); if (outfitAnimator != null) { - outfitHips = outfitAnimator.isHuman ? outfitAnimator.GetBoneTransform(HumanBodyBones.Hips)?.gameObject : null; + outfitHips = outfitAnimator.isHuman + ? outfitAnimator.GetBoneTransform(HumanBodyBones.Hips)?.gameObject + : null; } var hipsCandidates = new List();