|
WoopWoop-Docs
|
Represents a canvas UI element. More...
Public Member Functions | |
| override void | Awake () |
| Initializes the canvas by assigning a default camera if none is provided. | |
| override void | Update (float deltaTime) |
| Updates the canvas position to match the camera's position. | |
| override void | OnDrawGizmo () |
| Draws the canvas boundaries as a rectangle in the editor. | |
Public Member Functions inherited from WoopWoop.Component | |
| void | Attach (Entity entity) |
| Attaches the component to an entity. | |
| virtual void | Start () |
| Called when the component is started if it's enabled. | |
| virtual void | OnEndOfFrame () |
| Called on the end of every frame. | |
| virtual void | Stop () |
| Called when the component is removed. | |
Public Attributes | |
| Camera | camera |
| The camera associated with the canvas. | |
Additional Inherited Members | |
Properties inherited from WoopWoop.Component | |
| Entity | entity [get, private set] |
| The entity to which this component is attached. | |
| Transform | transform [get] |
| The transform of the entity to which this component is attached. | |
| bool | Enabled = true [get, set] |
| Determines whether the component is enabled. | |
Represents a canvas UI element.
|
virtual |
Initializes the canvas by assigning a default camera if none is provided.
Reimplemented from WoopWoop.Component.
|
virtual |
Draws the canvas boundaries as a rectangle in the editor.
Reimplemented from WoopWoop.Component.
|
virtual |
Updates the canvas position to match the camera's position.
| deltaTime | The time since the last frame. |
Reimplemented from WoopWoop.Component.
| Camera WoopWoop.UI.Canvas.camera |
The camera associated with the canvas.