UnityEditor.ModelImporterRigEditor.OnInspectorGUI C# (CSharp) Method

OnInspectorGUI() public method

public OnInspectorGUI ( ) : void
return void
        public override void OnInspectorGUI()
        {
            if (styles == null)
            {
                styles = new Styles();
            }
            EditorGUI.BeginChangeCheck();
            EditorGUILayout.Popup(this.m_AnimationType, styles.AnimationTypeOpt, styles.AnimationType, new GUILayoutOption[0]);
            if (EditorGUI.EndChangeCheck())
            {
                this.m_AvatarSource.objectReferenceValue = null;
                if (this.animationType == ModelImporterAnimationType.Legacy)
                {
                    this.m_AnimationCompression.intValue = 1;
                }
                else if ((this.animationType == ModelImporterAnimationType.Generic) || (this.animationType == ModelImporterAnimationType.Human))
                {
                    this.m_AnimationCompression.intValue = 3;
                }
            }
            EditorGUILayout.Space();
            if (!this.m_AnimationType.hasMultipleDifferentValues)
            {
                if (this.animationType == ModelImporterAnimationType.Human)
                {
                    this.HumanoidGUI();
                }
                else if (this.animationType == ModelImporterAnimationType.Generic)
                {
                    this.GenericGUI();
                }
                else if (this.animationType == ModelImporterAnimationType.Legacy)
                {
                    this.LegacyGUI();
                }
            }
            if (((this.m_Avatar != null) && this.m_Avatar.isValid) && this.m_Avatar.isHuman)
            {
                this.ShowUpdateReferenceClip();
            }
            bool flag = true;
            if ((this.animationType != ModelImporterAnimationType.Human) && (this.animationType != ModelImporterAnimationType.Generic))
            {
                flag = false;
            }
            if (this.m_CopyAvatar.boolValue)
            {
                flag = false;
            }
            if (flag)
            {
                EditorGUILayout.PropertyField(this.m_OptimizeGameObjects, new GUILayoutOption[0]);
                if (this.m_OptimizeGameObjects.boolValue && (base.serializedObject.targetObjects.Length == 1))
                {
                    EditorGUILayout.Space();
                    EditorGUI.BeginDisabledGroup(!this.m_CanMultiEditTransformList);
                    this.m_ExposeTransformEditor.OnGUI();
                    EditorGUI.EndDisabledGroup();
                }
            }
            base.ApplyRevertGUI();
        }