Skip to content

Add identity fields to placed objects#5

Merged
SilicoBen merged 1 commit into
mainfrom
feat/object-identity-fields
May 19, 2026
Merged

Add identity fields to placed objects#5
SilicoBen merged 1 commit into
mainfrom
feat/object-identity-fields

Conversation

@SilicoBen

Copy link
Copy Markdown
Contributor

Summary

  • RoomObject gains four user-editable identity strings: GlobalId, TypeId, CustomId, Name. Uniqueness is not enforced.
  • The fields round-trip through the .oapp project format via ObjectInstanceEntry.
  • The exported apparatus JSON (JsonExporter) now includes the fields for both in-room and outside objects.

Notes

This is the data-model half of the object-identity feature. The desktop editor changes that assign defaults, expose the fields in the inspector, and render them on the canvas live in the studio repo (feat/object-identity-fields) and depend on this PR.

Test plan

  • Save and reload a project with placed objects; confirm the four fields persist.
  • Export apparatus JSON; confirm globalId / typeId / customId / name appear on each object.

Each RoomObject now carries GlobalId, TypeId, CustomId and Name —
user-editable identity strings with sensible placement-time defaults.
Uniqueness is not enforced; two objects may legitimately share any
field.

The fields round-trip through the .oapp project format
(ObjectInstanceEntry) and appear in the exported apparatus JSON for
both in-room and outside objects.
@SilicoBen SilicoBen merged commit ad7eb12 into main May 19, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant