The Zero built-in library
The built-in library is the content every Zero world starts with: the asset types that say what a module, a component, a material or a scene is, the engine's Luau API modules, the components and systems a game is assembled from, the materials, shaders and meshes the renderer draws with, the tools agents and the editor work through, and the guides that explain all of it.
It is a library other worlds install, and every world that opens in Zero already holds it.
What it holds
| Folder | What is in it |
|---|---|
assetTypes/ | The definition of every asset type: what a .module, .component, .material, .scene and the rest hold, and how the engine loads them. |
modules/ | Luau modules, among them the engine API (modules/api/), maths, UI, version control (zm) and data helpers. |
components/ | Components to attach to entities: controllers, cameras, triggers, spawners and more. |
systems/ | Packages of larger systems: terrain, sky and atmosphere, pathfinding, procedural generation, character control, inverse kinematics, and the lighting and post-processing passes. |
materials/, shaders/, shaderModules/, renderFeatures/ | Surfaces, the WGSL they compile from, shared shader code and the render passes the frame is built from. |
meshes/, textures/, fonts/, models/ | Primitive shapes, textures, fonts and models. |
tools/ | Toolboxes the editor and agents call to inspect and change a world. |
editor/, themes/, menuTabs/ | The editor's panels, the UI themes and the tabs of the in-game menu. |
interfaces/ | Interfaces an asset type declares it implements, such as applicable, with the calls every implementer answers. |
controller/ | Camera and character controllers: first and third person, orbit, chase, side-scroller, isometric, RTS and cinematic. |
inputMaps/ | Input bindings for keyboard, mouse, gamepad, touch and headsets. |
docs/, skills/, workflows/ | Guides and agent skills that explain how to build with Zero. |
locales/, glossary/ | Translations of the text the library shows. |
Using it
Content refers to a built-in asset by its @builtin:: name, the folder path with dots:
local tween = require("@builtin::modules.tween")
A material, mesh or other asset is named the same way, for example @builtin::materials.gold or @builtin::meshes.torus.
In the editor, the guides index lists every guide this library carries, and each asset's own README.md describes what it does.
Versions
The library is versioned. A world records the version of the library it was made with and keeps reading that version, so a new release of the library changes nothing in a world until the world moves to it.
License
The library is published under CC0-1.0. The fonts and some of the models and textures are the work of third parties and stay under the licences their authors publish them with.
Comments · 0
Open discussion, no rating attached. Ask questions, swap notes, follow threads.
Documented parts · 1,539
- abi.procPackprocpack
- acceptChangestool
- accumulate.procNodeprocnode
- acos.procNodeprocnode
- actionsmodule
- addtool
- addtool
- addComponentstool
- addJointtool
- adjacency.procNodeprocnode
- adjacency.procNodeprocnode
- advancetool
- aerialPerspective.renderFeaturerenderfeature
- agenttoolbox
- agent_contextmodule
- agentsmodule
- agentSkill.assetTypeassettype
- AmbientOcclusioncomponent
- ambientOcclusionpackage
- ambientOcclusion.renderFeaturerenderfeature
- anchormodule
- animmodule
- anim_genservice
- animation.assetTypeassettype
- animationmodule
- animationtoolbox
- animGraphmodule
- AnimGraphmodule
- answertool
- antiAliasingmodule
- aomodule
- ao_denoise.computeShadercomputeshader
- ao_light_temporal.computeShadercomputeshader
- ao_pass.computeShadercomputeshader
- ao_pass_indirect.computeShadercomputeshader
- ao_walk.shaderModuleshadermodule
- apitoolbox
- app.inputMapinputmap
- appmodule
- appmodule
- app_menumodule
- Appearancecomponent
- appearancetoolbox
- applicableinterface
- appliedSystemmodule
- arclength.procNodeprocnode
- areamodule
- areaLighting.renderFeaturerenderfeature
- areaLightspackage
- argsmodule