static void SetElementVisual(UIVisual visual, Mesh mesh, Material material)

UIVisual visual Which UI visual element to override.
Mesh mesh The Mesh to use for the UI element’s visual component. The Mesh will be scaled to match the dimensions of the UI element.
Material material The Material to use when rendering the UI element. The default Material is specifically designed to work with quadrant sizing formatted meshes.

Override the visual assets attached to a particular UI element.

Note that StereoKit’s default UI assets use a type of quadrant sizing that is implemented in the Material and the Mesh. You don’t need to use quadrant sizing for your own visuals, but if you wish to know more, you can read more about the technique here. You may also find UI.QuadrantSizeVerts and UI.QuadrantSizeMesh to be helpful.

Found an issue with these docs, or have some additional questions? Create an Issue on Github!