UnityEditor.ShaderImporterInspector.ShowDefaultTextures C# (CSharp) Method

ShowDefaultTextures() private method

private ShowDefaultTextures ( ) : void
return void
        private void ShowDefaultTextures()
        {
            if (this.propertyNames.Count != 0)
            {
                EditorGUILayout.LabelField("Default Maps", EditorStyles.boldLabel, new GUILayoutOption[0]);
                for (int i = 0; i < this.propertyNames.Count; i++)
                {
                    Texture texture = this.textures[i];
                    Texture texture2 = null;
                    EditorGUI.BeginChangeCheck();
                    Type textureTypeFromDimension = MaterialEditor.GetTextureTypeFromDimension(this.dimensions[i]);
                    if (textureTypeFromDimension != null)
                    {
                        string t = !string.IsNullOrEmpty(this.displayNames[i]) ? this.displayNames[i] : ObjectNames.NicifyVariableName(this.propertyNames[i]);
                        texture2 = EditorGUILayout.MiniThumbnailObjectField(GUIContent.Temp(t), texture, textureTypeFromDimension, null, new GUILayoutOption[0]) as Texture;
                    }
                    if (EditorGUI.EndChangeCheck())
                    {
                        this.textures[i] = texture2;
                    }
                }
            }
        }
    }