Log inGet started
World

Style Cookbook: Mix Your Own Art Style from Stackable Look Blocks

README.md

toonBlocksStartup (asset type)

The asset type that starts toonBlocks' toon ink line on every machine. An asset of it holds a README.md and a .metadata and nothing else. When it registers (when a world loads, when the package is installed, when it arrives from another player), the type's onRegister hook loads ToonBlocks, which starts the toon ink runtime. From then on a look with a toon line block in its stack (Comic ink cel and every other toon look) draws its line, and the lines of objects with a game role, on every player's screen, players who join late included, with no setup code in the world. While no toon line block is on, the runtime does nothing.

Without it the line only drew on machines where some other code happened to load ToonBlocks first: in a world that had installed toonBlocks and nothing else, the toon look came up with its bands and fills but no line at all.

The package ships the one asset it needs, ink.toonBlocksStartup. A world never makes its own.

Known limits

  • An asset of this type registers when the engine indexes its files, a moment after they are written.
  • ZeroMind's description of this can lag one release behind what is installed (#19258).

The package README's Known limits lists the rest.