UnityEditor.TextureImporterInspector.MipMapGUI C# (CSharp) Method

MipMapGUI() private method

private MipMapGUI ( TextureInspectorGUIElement guiElements ) : void
guiElements TextureInspectorGUIElement
return void
        private void MipMapGUI(TextureInspectorGUIElement guiElements)
        {
            this.ToggleFromInt(this.m_EnableMipMap, s_Styles.generateMipMaps);
            this.m_ShowMipMapSettings.target = this.m_EnableMipMap.boolValue && !this.m_EnableMipMap.hasMultipleDifferentValues;
            if (EditorGUILayout.BeginFadeGroup(this.m_ShowMipMapSettings.faded))
            {
                EditorGUI.indentLevel++;
                this.ToggleFromInt(this.m_BorderMipMap, s_Styles.borderMipMaps);
                EditorGUILayout.Popup(this.m_MipMapMode, s_Styles.mipMapFilterOptions, s_Styles.mipMapFilter, new GUILayoutOption[0]);
                this.ToggleFromInt(this.m_FadeOut, s_Styles.mipmapFadeOutToggle);
                if (this.m_FadeOut.intValue > 0)
                {
                    EditorGUI.indentLevel++;
                    EditorGUI.BeginChangeCheck();
                    float intValue = this.m_MipMapFadeDistanceStart.intValue;
                    float maxValue = this.m_MipMapFadeDistanceEnd.intValue;
                    EditorGUILayout.MinMaxSlider(s_Styles.mipmapFadeOut, ref intValue, ref maxValue, 0f, 10f, new GUILayoutOption[0]);
                    if (EditorGUI.EndChangeCheck())
                    {
                        this.m_MipMapFadeDistanceStart.intValue = Mathf.RoundToInt(intValue);
                        this.m_MipMapFadeDistanceEnd.intValue = Mathf.RoundToInt(maxValue);
                    }
                    EditorGUI.indentLevel--;
                }
                EditorGUI.indentLevel--;
            }
            EditorGUILayout.EndFadeGroup();
        }