using System; namespace TechbloxModdingAPI.Interface.IMGUI { /// /// GUI Element like a text field, button or picture. /// This interface is used to wrap many elements from Unity's IMGUI system. /// public interface UIElement { /// /// GUI operations to perform in the OnGUI scope. /// This is basically equivalent to a MonoBehaviour's OnGUI method. /// void OnGUI(); /// /// The element's name. /// This should be unique for every instance of the class. /// string Name { get; } /// /// Whether to display the UI element or not. /// bool Enabled { get; } } }