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.
Doc Menu

Miscellaneous components for ScriptEngine


JanitorSpawner manages the lifecycle of a Janitor object and configures it to clean up spawned GameObjects and clear console logs upon each reload of the ScriptEngine. Additionally, it supports respawning the Janitor upon scene loads to avoid unintended cleanups in scenarios involving additive scene loading. The standalone Janitor object is needed to better track runtime GameObjects.


DPIAdjuster automatically adjusts the UI scale based on the screen's DPI. If enabled, it sets the UI scale to either a default value or double the default value when the screen's DPI exceeds a specified threshold (a simple implementation). The adjustment occurs at startup and whenever the screen DPI or resolution changes, provided the feature is set to auto-adjust.


This is a simple example component to show how you may implement a fetch-like function within the Unity environment.