Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

GDK for Unity Alpha Release 0.2.6

Compare
Choose a tag to compare
@gdk-for-unity-bot gdk-for-unity-bot released this 05 Aug 15:38
e31c47b

This release contains an inspector extension for your [Require] fields in your Monobehaviours, some usability improvements in generated standard library and transform types, and an upgrade to Worker SDK 13.8.2!

Keep giving us your feedback and/or suggestions! Check out our Discord, our forums, or here in the Github issues!

For more information, have a browse through our detailed release notes below or check out our Upgrade Guide! 🎉


Breaking Changes

  • Renamed Improbable.Gdk.Core.EntityQuerySnapshot to Improbable.Gdk.Core.EntitySnapshot. The Improbable.Gdk.Core.Commands.WorldCommands.EntityQuery.ReceivedResponse has been updated accordingly. #1053
  • DynamicSnapshot and DynamicConverter have been collapsed into Dynamic. #1053
    • The delegates from all of these classes are now available in the Dynamic.VTable<TData, TUpdate, TSnapshot> struct.
    • Dynamic.IHandler.Accept now takes a Dynamic.Vtable<TData, TUpdate, TSnapshot parameter.
  • Reactive components are now opt in instead of opt out. Use the scripting define USE_LEGACY_REACTIVE_COMPONENTS to re-enable them. #1059
    • Note that these will be removed in a future release.
  • Removed the CreateTransformSnapshot(Coordinates location, Quaternion rotation, Vector3 velocity) method. #1063
  • Removed the WorkerOpFactory from the io.improbable.gdk.testutils package. Please use the MockConnectionHandler in the io.improbable.gdk.core package instead. #1085
  • Removed the TestMonoBehaviour from the io.improbable.gdk.testutils package. #1085

Added

  • Added a bool TryGetComponent<T>(out T component); method to the SpatialOSEntity struct. This can help reduce boilerplate when writing custom IEntityGameObjectCreator implementations. #1049
  • Added the void AddComponentSnapshot<T>(T componentSnapshot) and bool TryGetComponent<T>(out T componentSnapshot) methods to the Improbable.Gdk.Core.EntitySnapshot struct. #1053
  • Added a EntitySnapshot GetEntitySnapshot() method to the Improbable.Gdk.Core.EntityTemplate class. #1053
  • Added methods for conversion of Coordinates, EdgeLength, FixedPointVector3 and CompressedQuaternion to/from native Unity Vector3 and Quaternion types. #1063
  • Added basic arithmetic and equality operators for the EdgeLength standard library type. #1063
  • Added a new io.improbable.gdk.debug package which contains an inspector extension for viewing [Require] states in the editor #1082

Changed

  • Upgraded to Worker SDK 13.8.2. #1052
  • The conversion methods for FixedPointVector3 and CompressedQuaternion have been moved from TransformUtils to their generated structs and are now public. #1063

Fixed

  • The world command sender reactive components and reactive component systems are now properly conditionally compiled. #1059
  • Subscribing to the World, ILogDispatcher, WorkerId, and LinkedGameObjectMap types no longer cause different MonoBehaviour/GameObject subscriptions to cross-talk. This previously would result in Monobehaviours disabling unexpectedly. #1071

Internal

  • Added extension methods on the SchemaObject struct for easy serializing/deserializing of the Entity schema type. #1053
  • Added options and functionality for serialization overrides for schema types only. #1061
  • Laid the groundwork for 2D support in the Transform Synchronization Feature Module. #1064
  • Removed core-sdk.pinned from the tools package.
  • Moved DisableAutoCreationTests into the test project #1085