Improbable Icon

SpatialOS Discourse Forums

GDK for Unity Release 0.3.4

Hi all,

We’ve just released the GDK for Unity 0.3.4.

In this release, we’ve moved from using chunk-based interest to using query-based interest by default.

To help you with this, we’ve added an EntityReservationSystem which automatically keeps a pool of reserved entity IDs. The Player Lifecycle module has been integrated with this system, providing the CreatePlayerEntityTemplate callback with the entity ID that the player will have after it is successfully spawned.

This is particularly useful for defining interest queries that are self-referential.

As QBI lets you filter for components a worker should be interested in, the GameObject Creation module has been changed to run for entities that match the minimum component set required by a IEntityGameObjectCreator, instead of any entity that is newly added.

This means that the module no longer cares if an entity is checked out in one frame or across multiple.

In addition, the GDK now lets you pin a runtime version that you wish to use. Initially this has been set to 14.5.0, but you can override this in the GDK Tools Configuration.

We’ve also included our usual assortment of bug fixes.

Note that this release includes several breaking changes. Please read the upgrade guide here.

The full release notes can be found here: https://github.com/spatialos/gdk-for-unity/releases/tag/0.3.4

This release also contains updated versions of our FPS Starter Project and Blank Project, both ported to use QBI:
https://github.com/spatialos/gdk-for-unity-fps-starter-project/releases/tag/0.3.4
https://github.com/spatialos/gdk-for-unity-blank-project/releases/tag/0.3.4

Cheers,
The GDK for Unity team