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.

C++
public ref class GUIEnabledWrapper : IDisposable
Inheritance
GUIEnabledWrapper
Implements

Constructors

GUIEnabledWrapper()

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

Methods

Applies to

Produit Versions
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0