vircadia-native-core icon indicating copy to clipboard operation
vircadia-native-core copied to clipboard

Entities: Add version property to entities upon creation.

Open digisomni opened this issue 3 years ago • 4 comments

Summary

In the interest of allowing entities to be properly handled and upgraded, without assumptions, every entity is assigned a semantic version upon its creation. This is a read-only property to the scripting API and can only be changed by copying properties to a new entity.

digisomni avatar Oct 25 '22 19:10 digisomni

How does this property differ from the UUID? That also is a read-only unique identifier. How is it envisaged that the version property be used?

ctrlaltdavid avatar Oct 30 '22 08:10 ctrlaltdavid

Entity JSONs have a single version at the top if I recall correctly, this instead moves that version number into each entity. The UUID is to identify the entity, the version is to determine what set of "properties" it has and can legally have so we can perform fix-up, determine compatibility, etc.

digisomni avatar Oct 30 '22 08:10 digisomni

Hello! Is this still an issue?

stale[bot] avatar Apr 28 '23 12:04 stale[bot]

Hello! Is this still an issue?

stale[bot] avatar Oct 31 '23 08:10 stale[bot]