Container#
- class Container#
The base class of canvases and panels, which other objects can be added to.
Inherited Members
From
Object:RectTransform,LayoutElement,Visible,Remove
- Panel AddPanel (bool visible = true)#
Add a panel to this object.
- Parameters:
visible – Whether the new panel is visible.
- Game Scenes:
All
- 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
- InputField AddInputField (bool visible = true)#
Add an input field to this object.
- Parameters:
visible – Whether the input field is visible.
- Game Scenes:
All
- 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
- 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
- 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.
- 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
- Dropdown AddDropdown (bool visible = true)#
Add a dropdown to this object.
- Parameters:
visible – Whether the dropdown is visible.
- Game Scenes:
All
- Image AddImage (bool visible = true)#
Add an image to this object.
- Parameters:
visible – Whether the image is visible.
- Game Scenes:
All
- ScrollView AddScrollView (bool visible = true)#
Add a scroll view to this object.
- Parameters:
visible – Whether the scroll view is visible.
- Game Scenes:
All