Class GUIEnabledWrapper
Similar to the scope classes in Unity (i.e VerticalScope), this class is a helper class designed to manage GUI.enabled over some lifetime Should be utilized with using{} code block
Implements
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Utilities.Editor
Assembly: cs.temp.dll.dll
Syntax
public class GUIEnabledWrapper : IDisposable
Constructors
GUIEnabledWrapper(Boolean, Boolean)
If overwrite is true, then whatever enable value is provided will be set for lifetime of exec action If overwrite is false, then will only enable GUI if already was enabled
Declaration
public GUIEnabledWrapper(bool enable, bool overwrite = false)
Parameters
Type | Name | Description |
---|---|---|
Boolean | enable | desired GUI.enabled value |
Boolean | overwrite | control to disregard whether GUI.enabled was already set |
Methods
Dispose()
Declaration
public void Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing |