Skip to content

OnlyWorlds Unity SDK 0.58.1

Choose a tag to compare

@tmoosting tmoosting released this 27 Nov 21:38
· 56 commits to main since this release

OWSync holds an upserted element under its own id, and a 409 from the read of a bodiless upsert is that read's
error rather than a reset, as the Godot and Unreal SDKs do. A patch release: no public name changes.

Changed

  • OWSync.IncrementalAsync holds an upserted element under the id its body carries. It held every upsert under
    the change row's id, so a body whose own id differed was held under an id the element read from the cache did
    not name, and a body with no id came back as a model with none. Now the body's own id is the key, and a body
    with none takes the row's, written into it, so the cache and the models read from it agree on one id. The Godot
    and Unreal SDKs hold it the same way.
  • A 409 resync_required on the read by id of an upsert with no body is that read's error, not a reset.
    OWSync.IncrementalAsync walked the world again on any 409 resync_required during the walk, the read of a
    bodiless upsert's element included. The API names that answer for the changes feed only (its since parameter), so
    a reset now follows only a feed page's 409; one from the read by id is thrown as the OWApiError it is, with the
    cursor left where it was, as any other error from that read already left it, and the next sync reads from there
    again. The Godot and Unreal SDKs answer it the same way.