diff --git a/Assets/SEE/Game/Drawable/GameHighlighter.cs b/Assets/SEE/Game/Drawable/GameHighlighter.cs index 6b23d4113c..cbab41a8cc 100644 --- a/Assets/SEE/Game/Drawable/GameHighlighter.cs +++ b/Assets/SEE/Game/Drawable/GameHighlighter.cs @@ -23,7 +23,7 @@ public static HighlightEffect EnableGlowOutline(GameObject obj) effect.outline = 1; effect.outlineQuality = HighlightPlus.QualityLevel.Highest; effect.outlineColor = Color.yellow; - effect.glowQuality = HighlightPlus.QualityLevel.Highest; + effect.glowQuality = Highlighter.DefaultGlowQuality; effect.glow = 1.0f; effect.glowHQColor = Color.yellow; return effect; @@ -40,7 +40,7 @@ public static HighlightEffect EnableGlowOverlay(GameObject obj) effect.highlighted = true; effect.previewInEditor = false; effect.outline = 0; - effect.glowQuality = HighlightPlus.QualityLevel.Highest; + effect.glowQuality = Highlighter.DefaultGlowQuality; effect.glow = 1.0f; effect.glowHQColor = Color.yellow; effect.overlay = 1.0f; diff --git a/Assets/SEE/Game/Highlighter.cs b/Assets/SEE/Game/Highlighter.cs index 420c51f749..ca270e3890 100644 --- a/Assets/SEE/Game/Highlighter.cs +++ b/Assets/SEE/Game/Highlighter.cs @@ -9,6 +9,13 @@ namespace SEE.Game /// internal static class Highlighter { + /// + /// The default quality level for the glow effect (. + /// + /// The value does not work + /// in Highlight Plus version 21.0 anymore. + public const HighlightPlus.QualityLevel DefaultGlowQuality = HighlightPlus.QualityLevel.High; + /// /// Whether or not the should be highlighted. /// @@ -38,7 +45,7 @@ public static HighlightEffect GetHighlightEffect(GameObject gameObject) highlight.outlineColor = inverted; highlight.SetGlowColor(Color.yellow); highlight.glow = 2; - highlight.glowQuality = HighlightPlus.QualityLevel.Highest; + highlight.glowQuality = DefaultGlowQuality; highlight.effectGroup = TargetOptions.OnlyThisObject; highlight.glowDownsampling = 1; highlight.hitFxColor = inverted;