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.3

Choose a tag to compare

@jessicafalk jessicafalk released this 12 Jun 17:02
· 331 commits to master since this release
eae6cf5

This release contains the upgrade to the latest Entities package and to Unity 2019.1.3. It also contains additional tooling for the development authentication flow and the BlittableBool struct has been removed.

Note: This release contains a breaking change. Our starter projects don't have a schema folder by default anymore. To ensure your own schema gets picked up correctly, open your project inside Unity.
From your Unity Editor menu, select SpatialOS > Gdk tools configuration. In the Schema sources section inside the Gdk tools configuration window, add your path to the list. Then re-generate the code by selecting SpatialOS > Generate code (force).

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! 🎉


Breaking Changes

  • Upgraded the project to be compatible with 2019.1.3f1 (#951). Note that we do not support Unity 2018.x anymore.
  • Schema from packages are no longer copied into the root schema directory. #953
    • Renamed the Schema directory within packages to .schema, to avoid generating unecessary .meta files.
    • Update feature module schema to the correct namespaces and folders within .schema.
    • If you use schema that imports from GDK packages, you will need to change how you import GDK schema.
      • Schema file Y in package improbable.gdk.X is imported using import "improbable/gdk/X/Y.schema".
      • For example, import "from_gdk_packages/com.improbable.gdk.core/common.schema"; now becomes import "improbable/gdk/core/common.schema";.
  • Upgraded the Unity Entities package to preview.33 from preview.21. #963, #966, #967
    • See the Unity Entities package changelog for more information.
    • This has removed several APIs such as [Inject] and ComponentDataArray.
    • If you use generic IComponentData types, you must explicitly register them. Please view Unity's example on RegisterGenericComponentType in the changelog linked above.
    • System groups API has changed, systems without a group are automatically added to the SimulationSystemGroup which runs on Update.
      • The Unity Editor will print helpful warnings if any systems are not grouped properly.
  • Removed BlittableBool, as bool is now blittable. #965
  • Fixed a bug where the generated ReceivedUpdates component was not correctly wrapped in the DISABLED_REACTIVE_COMPONENTS define. #971
    • This means that if you have DISABLE_REACTIVE_COMPONENTS set, the ReceivedUpdates types will no longer be available.

Changed

  • Moved Runtime IP from the GdkToolsConfiguration.json to the Editor Preferences. #961
  • Moved Dev Auth Token to the Player Preferences. #961
    • Added a setting in GdkToolsConfiguration to let users configure whether a DevAuthToken.txt should be generated or not.
    • When launching Android cloud clients from the Editor, the DevAuthToken is now passed in as a command line argument.
  • The schema descriptor is no longer deleted when you select SpatialOS > Clean all workers from the Unity Editor. #969

Fixed

  • Fixed a bug where a worker's World could get disposed multiple times if you stopped the application inside the Editor while the worker is being created. #952

Internal

  • Removed the workaround for a schema component update bug (WRK-1031). #962
  • All playground launch configuration files now use the w2_r0500_e5 template instead of the small template which was deprecated. #968
  • Disabled Burst compilation for all platforms except for iOS, because Burst throws benign errors when building workers for other platforms than the one you are currently using. #199
  • Enabled Burst compilation for iOS, because disabling results in an invalid XCode project. #197