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

Commit 8713baa

Browse files
committed
Fixed GC alloc with OnGUI
1 parent a67fe3a commit 8713baa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

PostProcessing/Runtime/PostProcessingBehaviour.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ void OnEnable()
7676

7777
foreach (var component in m_Components)
7878
m_ComponentStates.Add(component, false);
79+
80+
useGUILayout = false;
7981
}
8082

8183
void OnPreCull()

0 commit comments

Comments
 (0)