Repository navigation
OnlyWorlds Unity SDK 0.17.0
The world's own settings, written from Unity: PatchWorldAsync sends a change to a world's settings, its origin and
its tools' extension keys, and folders carry the world's origin as the server keeps it (folder format
0.3.16). A minor release because it adds public API (below).
Added
OWClient.PatchWorldAsync(partial), a write to the world's own settings (PATCH /world): only the keys sent
change, and the call returns the world as the server holds it after. AGetWorldAsyncbody can be sent back whole:
the keys the server refuses there are left out (id,slug,public_page,public_read,agent_narrator_rule,
agent_writes_proposed,origin, now listed asOWPayload.WorldReadOnlyFields, and the element write's own
read-only keys). A world's origin, where it first came from, is written as the plain keyssourceandproducer
(each an object, ornullto clear it) and served back underorigin. The world's extension keys
(x_*,atlas_*,shadow_*, at the top level of its body, at most 64 KB in all) are sent as given, andnull
removes one. The owner's key may change any setting the server takes; a co-builder's onlytime_range_current,
source,producerand extension keys, and anything more is a 403 (OWApiError.IsOwnerOnly). Sent with the PIN,
like every write, and withoutX-OW-AgentorX-OW-Client. Parity with the TypeScript SDK 4.65.0 and the Python
package 0.34.0, their test vectors ported.
Changed
- A folder export declares folder format 0.3.16 (
OWFolderExport.FormatVersion), with the onlyworlds Python
package's 0.33.0. The world'sorigin(its first import, as the server keeps it) is written into
world.jsonexactly asGET /worldserves it or as the one-file export carries it, beside the export's ownsource
andproducer; it is never made up from those two, and a world that has none gets none. The world's extension keys
ride along the same way. Both readers (OWFolderReader,OWEnvelopeReader) keeporiginand the extension keys in
the world they read, so a folder rewritten from a read one carries them byte for byte. Nothing else in what an
export writes changed. - The schema pin moves to dist.51 (
v0.33.0-dist.51; canonical00.33.00unchanged, no schema file moved). Only
the example one-file export moved: its world block is now the World whole, withoriginand anx_namesmap. The
package's test copy of it moves with it.
Fixed
- The settings window's key note wraps: the write key's line ("writes need one (a seat's secret, or the account
PIN)") ran past the window's fixed edge and was cut. Found by pressing Test Connection in an Editor on three keys: a
write key with its secret answers "Connected" throughGET /me, the same key with a wrong PIN "Failed: 401
invalid_credentials", a write key with no PIN "Connected" (reads need none).