Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.

Commit c512b14

Browse files
author
Gonz Tirado
committed
Changed pragma warning disable to UNITY_EDITOR preprocessor directive. This variables are only used in editor mode so it will prevent the compilation warning
1 parent f640579 commit c512b14

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

PostProcessing/Runtime/PostProcessLayer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,11 @@ public enum Antialiasing
114114
[SerializeField]
115115
PostProcessResources m_Resources;
116116

117-
#pragma warning disable 169
117+
#if UNITY_EDITOR
118118
// UI states
119119
[SerializeField] bool m_ShowToolkit;
120120
[SerializeField] bool m_ShowCustomSorter;
121-
#pragma warning restore 169
121+
#endif
122122

123123
/// <summary>
124124
/// If <c>true</c>, it will stop applying post-processing effects just before color grading

0 commit comments

Comments
 (0)