Add texture groups preview to Graphics Quality window in editor

This commit is contained in:
Wojtek Figat
2021-06-18 11:57:51 +02:00
parent dc38a55218
commit 41f0554484

View File

@@ -1,5 +1,6 @@
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved. // Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using FlaxEditor.CustomEditors; using FlaxEditor.CustomEditors;
using FlaxEngine; using FlaxEngine;
@@ -9,7 +10,7 @@ using FlaxEngine.Json;
namespace FlaxEditor.Windows namespace FlaxEditor.Windows
{ {
/// <summary> /// <summary>
/// Window used to show and edit current graphics rendering settings via <see cref="Graphics"/>. /// Window used to show and edit current graphics rendering settings via <see cref="Graphics"/> and <see cref="Streaming"/>.
/// </summary> /// </summary>
/// <seealso cref="FlaxEditor.Windows.EditorWindow" /> /// <seealso cref="FlaxEditor.Windows.EditorWindow" />
public class GraphicsQualityWindow : EditorWindow public class GraphicsQualityWindow : EditorWindow
@@ -86,6 +87,18 @@ namespace FlaxEditor.Windows
get => Graphics.AllowCSMBlending; get => Graphics.AllowCSMBlending;
set => Graphics.AllowCSMBlending = value; set => Graphics.AllowCSMBlending = value;
} }
[NoSerialize]
[EditorOrder(2000), EditorDisplay("Textures", EditorDisplayAttribute.InlineStyle), Tooltip("Textures streaming configuration.")]
public TextureGroup[] TextureGroups
{
get => Streaming.TextureGroups;
set
{
Streaming.TextureGroups = value;
Streaming.RequestStreamingUpdate();
}
}
} }
/// <summary> /// <summary>