Use the /collab command on Discord to gain access to the OneJS private repo. The repo offers early access to the latest features and fixes that may not yet be available on the Asset Store. An early preview of OneJS V2 is available on branch onejs-v2. It brings major performance improvements, zero-allocation interop, and a new esbuild workflow.


Referencing VisualElements

The JSX association with UI Toolkit VisualElement controls is in the 'jsx.d.ts' file in ScriptLib\definitions

To access the VisualElement, create a 'ref' reference to the Element, then typecast the as here.

const tfref = useRef<Dom>();

function onEvent(){
  const tf = as TextField;

return <textfield ref={tfref} text="foo" />
  • Button
  • TextElement
  • TextField
  • SimpleList
  • DropdownField
  • [[VirtualList|Example---Control---List---VirtualList]] ...