space_ex v0.8.0 SpaceEx.UI.Canvas
A canvas for user interface elements.
Link to this section Summary
Functions
Add a button to the canvas
Add an input field to the canvas
Create a new container for user interface elements
Add text to the canvas
The rect transform for the canvas
Remove the UI object
Whether the UI object is visible
Whether the UI object is visible
Link to this section Functions
Add a button to the canvas.
content— The label for the button.visible— Whether the button is visible.
Returns: a reference to a SpaceEx.UI.Button object
Add an input field to the canvas.
visible— Whether the input field is visible.
Returns: a reference to a SpaceEx.UI.InputField object
Create a new container for user interface elements.
visible— Whether the panel is visible.
Returns: a reference to a SpaceEx.UI.Panel object
Add text to the canvas.
content— The text.visible— Whether the text is visible.
Returns: a reference to a SpaceEx.UI.Text object
The rect transform for the canvas.
Returns: a reference to a SpaceEx.UI.RectTransform object
Remove the UI object.
Returns: :ok
Whether the UI object is visible.
Returns: :ok
Whether the UI object is visible.
Returns: true or false