You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/tutorials/advanced/2d_shaders/04_debug_ui/index.md
+11-5Lines changed: 11 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,15 +78,21 @@ Each instance of `Material` is going to draw a custom debug window. The window w
78
78
79
79
Currently however, the control is not fully bound to the the `Saturation` parameter of the `greyscale` shader, inputs will always be overridden because the `GameScene` itself keeps setting the value. In order to solve this, we introduce a custom property in the `Material` classthat causes the debug UI to override the various `SetParameter()` methods.
80
80
81
-
2. Next, add this new boolean to the `Material` class:
81
+
2. Add the following `using` statements to the top of the `Material.cs` file:
6. Finally, inordertorenderthedebugUIfor the `_grayscaleEffect`, just enable the `IsDebugVisible` property to `true` in the `LoadCOntent` method of the `GameScreen` class:
133
+
6. Finally, inordertorenderthedebugUIfor the `_grayscaleEffect`, just enable the `IsDebugVisible` property to `true` in the `LoadContent` method of the `GameScreen` class:
0 commit comments