/// <summary> /// /// </summary> public override void OnInspectorGUI() { if( m_Styles == null ) { m_Styles = new Styles(); } bool multiMode = base.targets.Length > 1; serializedObject.Update(); EditorGUILayout.PropertyField( m_Controller, EditorHelper.TempContent( "コントローラ" ) ); if( ClickMenu( "コントローラ" ) ) { var menu = new GenericMenu(); menu.AddItem( new GUIContent( "Revert Value to Prefab" ), false, EditorHelper.SetPrefabOverride, m_Controller ); menu.AddItem( new GUIContent( "Create New Controller" ), false, CreateNewController ); menu.ShowAsContext(); } EditorGUILayout.PropertyField( m_Avatar, EditorHelper.TempContent( "アバター" ) ); MenuRevert( "アバター", m_Avatar ); EditorGUILayout.PropertyField( m_ApplyRootMotion, EditorHelper.TempContent( "ルートモーション適用" ) ); MenuRevert( "ルートモーション適用", m_ApplyRootMotion ); EditorGUILayout.PropertyField( m_UpdateMode, EditorHelper.TempContent( "アップデートモード" ) ); MenuRevert( "アップデートモード", m_UpdateMode ); EditorGUILayout.PropertyField( m_CullingMode, EditorHelper.TempContent( "カリングモード" ) ); MenuRevert( "カリングモード", m_CullingMode ); serializedObject.ApplyModifiedProperties(); if( !hasController() ) return; //if( string.IsNullOrEmpty( prefabPath ) ) return; GUILayout.Space( 4 ); Rect rc = GUILayoutUtility.GetRect( 10, 14/*new GUIContent( "" ), "toolbarbutton"*/ ); DrawTitleToolIcon( rc ); rc.x = 1; rc.y -= 4; rc.width = EditorGUIUtility.currentViewWidth - 3; rc.height = 18; PreferenceSettings.i.AnimatorInspectorPreview.Value = EditorHelper.FoldoutTitlebar( rc, PreferenceSettings.i.AnimatorInspectorPreview, "Animator - Preview", false ); if( PreferenceSettings.i.AnimatorInspectorPreview ) { DrawPreviewButton(); } //EditorGUIUtility.FindTexture( "Animator Icon" ) //GUILayout.Space( 8 ); }