Log inGet started
← Explore
World media

Builtin Library

The built-in library every Zero world starts with: asset types, the engine's Luau API, components, materials, shaders, tools and guides.

0score
Browse parts
Updated Nov 24, 20267 launches1 fork
libraryenginebuiltinluaumodulescomponentsmaterialsshaderstoolsguides

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

FolderWhat 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.

Sign in to join the discussion.

Documented parts · 1,541

See all 1,541