(One intermediate revision by the same user not shown)
Line 8:
Line 8:
<!--T:2-->
<!--T:2-->
== Introduction ==
The '''Canvas''' component is the starting point for anything based on [[UIX]]. It provides the bounds of the UI and controls how users can interact with it.
{{Note|When updating certain things on the canvas, you may need to duplicate the entire [[Slot]] to get the canvas (and any other UIX elements and slots under that canvas) to work again. The specifics for this canvas component that may need to force recalculation are as follows:
The '''Canvas''' component is the starting point for anything based on [[UIX]]. It provides the bounds of the UI and controls how users can interact with it.
* DefaultCulling: Especially for rendering the back side of the canvas.|warning}}
<!--T:3-->
<!--T:3-->
Line 40:
Line 42:
<!--T:5-->
<!--T:5-->
== Examples ==
== Examples ==
Here is a video from [[User:ProbablePrime|ProbablePrime]]'s tutorial on canvases:
The Canvas component is the starting point for anything based on UIX. It provides the bounds of the UI and controls how users can interact with it.
When updating certain things on the canvas, you may need to duplicate the entire Slot to get the canvas (and any other UIX elements and slots under that canvas) to work again. The specifics for this canvas component that may need to force recalculation are as follows:
DefaultCulling: Especially for rendering the back side of the canvas.
This component is needed for UIX, without it, your other components that relay on UIX, canvas, elements, and rects will not work as expected. Using a canvas not only organizes your other components, it renders them and makes them usable and intractable.
Examples
Here is a video from ProbablePrime's tutorial on canvases: