.. default-domain:: cs .. highlight:: csharp .. namespace:: KRPC.Client.Services.UI Container ========= .. class:: Container The base class of canvases and panels, which other objects can be added to. | Base class: :type:`Object` | Derived classes: :type:`Canvas`, :type:`Panel` .. container:: inherited-members .. rubric:: Inherited Members * From :type:`Object`: :prop:`RectTransform `, :prop:`LayoutElement `, :prop:`Visible `, :meth:`Remove ` .. function:: Panel AddPanel(bool visible = true) Add a panel to this object. :parameters: * **visible** -- Whether the new panel is visible. :Game Scenes: All .. function:: Text AddText(string content, bool visible = true) Add text to this object. :parameters: * **content** -- The text. * **visible** -- Whether the text is visible. :Game Scenes: All .. function:: InputField AddInputField(bool visible = true) Add an input field to this object. :parameters: * **visible** -- Whether the input field is visible. :Game Scenes: All .. function:: Button AddButton(string content, bool visible = true) Add a button to this object. :parameters: * **content** -- The label for the button. * **visible** -- Whether the button is visible. :Game Scenes: All .. function:: Toggle AddToggle(string content, bool visible = true) Add a toggle to this object. :parameters: * **content** -- The label for the toggle. * **visible** -- Whether the toggle is visible. :Game Scenes: All .. function:: ToggleGroup AddToggleGroup() Add a toggle group to this object, to make a set of toggles into radio buttons. :Game Scenes: All .. note:: The group is not drawn and does not take up any space. The toggles that belong to it can be added anywhere. .. function:: Slider AddSlider(bool vertical = false, bool visible = true) Add a slider to this object. :parameters: * **vertical** -- Whether the slider runs from bottom to top, rather than from left to right. * **visible** -- Whether the slider is visible. :Game Scenes: All .. function:: Dropdown AddDropdown(bool visible = true) Add a dropdown to this object. :parameters: * **visible** -- Whether the dropdown is visible. :Game Scenes: All .. function:: Image AddImage(bool visible = true) Add an image to this object. :parameters: * **visible** -- Whether the image is visible. :Game Scenes: All .. function:: ScrollView AddScrollView(bool visible = true) Add a scroll view to this object. :parameters: * **visible** -- Whether the scroll view is visible. :Game Scenes: All