.. default-domain:: csharp .. highlight:: csharp .. namespace:: KRPC.Client.Services.UI Panel ===== .. class:: Panel A container for user interface elements. See :meth:`Canvas.AddPanel`. .. property:: RectTransform RectTransform { get; } The rect transform for the panel. :Game Scenes: All .. property:: bool Visible { get; set; } Whether the UI object is visible. :Game Scenes: All .. method:: Panel AddPanel(bool visible = true) Create a panel within this panel. :parameters: * **visible** -- Whether the new panel is visible. :Game Scenes: All .. method:: Text AddText(string content, bool visible = true) Add text to the panel. :parameters: * **content** -- The text. * **visible** -- Whether the text is visible. :Game Scenes: All .. method:: InputField AddInputField(bool visible = true) Add an input field to the panel. :parameters: * **visible** -- Whether the input field is visible. :Game Scenes: All .. method:: Button AddButton(string content, bool visible = true) Add a button to the panel. :parameters: * **content** -- The label for the button. * **visible** -- Whether the button is visible. :Game Scenes: All .. method:: void Remove() Remove the UI object. :Game Scenes: All