From 41f0554484b6c5e26e020a8a739ed198bbcad74e Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Fri, 18 Jun 2021 11:57:51 +0200 Subject: [PATCH] Add texture groups preview to Graphics Quality window in editor --- Source/Editor/Windows/GraphicsQualityWindow.cs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Source/Editor/Windows/GraphicsQualityWindow.cs b/Source/Editor/Windows/GraphicsQualityWindow.cs index 33e5a3ff4..3880a4391 100644 --- a/Source/Editor/Windows/GraphicsQualityWindow.cs +++ b/Source/Editor/Windows/GraphicsQualityWindow.cs @@ -1,5 +1,6 @@ // Copyright (c) 2012-2021 Wojciech Figat. All rights reserved. +using System.Collections.Generic; using System.ComponentModel; using FlaxEditor.CustomEditors; using FlaxEngine; @@ -9,7 +10,7 @@ using FlaxEngine.Json; namespace FlaxEditor.Windows { /// - /// Window used to show and edit current graphics rendering settings via . + /// Window used to show and edit current graphics rendering settings via and . /// /// public class GraphicsQualityWindow : EditorWindow @@ -86,6 +87,18 @@ namespace FlaxEditor.Windows get => Graphics.AllowCSMBlending; 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(); + } + } } ///