Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

SetupWriter

What a plugin’s setup and a logic component’s useSetupEffect write with: any trait, on any entity or the world, on the room and on every page alike, while the setup or the effect runs, and again while its undo or cleanup runs. Its registrations take it first, such as registerWeapon(writer, name, settings). It closes when the setup or the effect returns, so a setup writer kept for later writes nothing. On a page in a room, an effect’s writes nothing the room streams, since the room runs the same effect. It spawns nothing and decides no outcome: a setup runs on every page, where a spawn would copy what the room streams. As Unity’s OnCreate(ref SystemState) and Bevy’s startup systems.

Property Modifier Type Description
[setupWriterBrand] readonly true -
world readonly World The world the setup runs on, to read.