We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

    Show / Hide Table of Contents

    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

    Inheritance
    Object
    GUIEnabledWrapper
    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
    Back to top Generated by DocFX