Modifier

Partager via


GUIEnabledWrapper Class

Definition

Similar to the scope classes in Unity (i.e VerticalScope), This class is a helper class designed to force enable GUI.enabled over some lifetime. Should be utilized with using{} code block.

public ref class GUIEnabledWrapper : IDisposable
public class GUIEnabledWrapper : IDisposable
type GUIEnabledWrapper = class
    interface IDisposable
Public Class GUIEnabledWrapper
Implements IDisposable
Inheritance
GUIEnabledWrapper
Implements

Constructors

GUIEnabledWrapper()

Captures whether the Unity editor GUI state was enabled or not. Then forces enable to true

Methods

Dispose()
Dispose(Boolean)

Applies to