23. GUI shaders and world effects stay separate
A room screen stack normally affects the world image. The gameplay GUI remains clear above it. This is useful for heavy pixelation or fog: the player can still read dialogue and find the inventory controls.
1. Open GUI Designer and select the GUI or element you want to treat.
2. Use GUI Window for the whole authored window, or Element Shader for the selected control.
3. Choose one effect and test the whole control. A control shader can affect its text and artwork together.
4. Keep hover, clicked and background images configured in their normal Image controls. A shader does not replace those state assignments.
5. Use Preview for the control’s look; use Play for the complete room, GUI order and input behavior.
| Goal | Suggested choice |
|---|---|
| Clear text over a retro room | Apply the retro effect to Scene Shaders; leave the GUI untreated. |
| A holographic device panel | Treat the panel or its decorative image, while keeping small text readable. |
| A magical icon only | Use the icon/element’s own shader rather than the whole HUD. |
| A temporary radial impact | Use Zoom Blur; leave Include GUI in Effect off initially. |
| A frame that shares the room style | Use Screen Overlay → Overlay Shader Source → Use Current Room Shaders. |
Screen overlays sit below gameplay GUIs and ignore mouse input. A GUI is the appropriate tool when the artwork needs buttons, interactions, independently animated controls or several separately controlled layers.
