Optional
canvasThe starting height of the Root#viewport's canvas.
Optional
canvasThe starting width of the Root#viewport's canvas.
Optional
cloneShould the material used for the Root be cloned? If false, then the actual material will be used, which will lead to issues if the material is also used elsewhere.
Optional
collisionThe collision groups that this root's collider will belong to. If 0, collider and cursor-target will not be added.
Optional
collisionHow many pixels to over-extend the collision by. For example, if 2, and the units-per-pixel is 0.01, then the collision extents will be expanded by 0.02 game units on all sides.
Optional
constraintsThe starting layout constraints of the Root.
Optional
cursorA cursor style manager for sharing the cursor style with other components without having a glitchy cursor style. If omitted and the pointer style handler is not overridden, then the cursor style is set directly.
Even if the pointerStyleHandler is overridden, this should still be passed if it's available, so that the root can clear the pointer style when it's disabled.
Optional
destroyWhen true, the UI texture will be destroyed to clear up space in the texture atlas whenever the UI root is disabled. Note that this will cause additional texture updates when re-enabling the UI root.
Optional
enableShould contentEditable be set to true? Needed for paste events, but creates issues on mobile; virtual keyboard is opened whenever the canvas is clicked. Disabled by default
Optional
keyboardThe KeyboardDriver to dispatch key events to. If null (default), WLRoot.keyboardDriver is used.
Optional
keyboardThe keyboard template to use for the VirtualKeyboard Widget in a VirtualKeyboardRoot.
Optional
maxSets Root#maxCanvasHeight.
Optional
maxSets Root#maxCanvasWidth.
Optional
overextendShould the collision extents only be expanded when the cursor is being captured?
Optional
pointerSets Root#pointerStyleHandler.
Optional
preventSets CanvasViewport#preventAtlasBleeding in the internal viewport (Root#viewport).
Optional
preventSets Root#preventBleeding.
Optional
registerRegister the default keyboard driver to this root?
Optional
registerRegister the default pointer driver to this root? If collisionGroupsMask is 0, this is forced to false.
Optional
resolutionSets Root#resolution.
Optional
tabSets Root#tabFocusable.
Optional
textureWhich uniform name should be used for setting the material's texture? If not passed, then the uniform name will be guessed from the pipeline name, which will result in an error when an unknown pipeline is used.
Optional
themeSets Root#child's Widget#inheritedTheme.
Optional
unitsThe amount of world units per canvas pixel. Determines the pixel density of the mesh.
Generated using TypeDoc
Optional WLVirtualKeyboardRoot constructor properties.