Struct GUIBackgroundColorScope
A handy scope variable that sets UnityEngine.GUI.backgroundColor to the given color, and automatically resets it to its original color when the scope ends
Implements
System.IDisposable
Namespace: Atlas
Assembly: Atlas.Runtime.dll
Syntax
public struct GUIBackgroundColorScope : IDisposable
Constructors
| Improve this Doc View SourceGUIBackgroundColorScope(Color, Boolean)
Constructor
Declaration
public GUIBackgroundColorScope(Color color, bool shouldSetColor = true)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Color | color | The target color |
System.Boolean | shouldSetColor | Optional conditional for bypassing color assignment |
Methods
| Improve this Doc View SourceDispose()
Ends the scope
Declaration
public void Dispose()
Implements
System.IDisposable