GDK for Unity Alpha Release 0.2.3
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 Unity2018.xanymore. - Schema from packages are no longer copied into the root
schemadirectory. #953- Renamed the
Schemadirectory within packages to.schema, to avoid generating unecessary.metafiles. - 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.Xis imported usingimport "improbable/gdk/X/Y.schema". - For example,
import "from_gdk_packages/com.improbable.gdk.core/common.schema";now becomesimport "improbable/gdk/core/common.schema";.
- Schema file Y in package
- Renamed the
- Upgraded the Unity Entities package to
preview.33frompreview.21. #963, #966, #967- See the Unity Entities package changelog for more information.
- This has removed several APIs such as
[Inject]andComponentDataArray. - If you use generic
IComponentDatatypes, you must explicitly register them. Please view Unity's example onRegisterGenericComponentTypein the changelog linked above. - System groups API has changed, systems without a group are automatically added to the
SimulationSystemGroupwhich runs onUpdate.- The Unity Editor will print helpful warnings if any systems are not grouped properly.
- Removed
BlittableBool, asboolis now blittable. #965 - Fixed a bug where the generated
ReceivedUpdatescomponent was not correctly wrapped in theDISABLED_REACTIVE_COMPONENTSdefine. #971- This means that if you have
DISABLE_REACTIVE_COMPONENTSset, theReceivedUpdatestypes will no longer be available.
- This means that if you have
Changed
- Moved Runtime IP from the
GdkToolsConfiguration.jsonto the Editor Preferences. #961 - Moved Dev Auth Token to the Player Preferences. #961
- Added a setting in
GdkToolsConfigurationto let users configure whether aDevAuthToken.txtshould be generated or not. - When launching Android cloud clients from the Editor, the DevAuthToken is now passed in as a command line argument.
- Added a setting in
- The schema descriptor is no longer deleted when you select
SpatialOS > Clean all workersfrom the Unity Editor. #969
Fixed
- Fixed a bug where a worker's
Worldcould 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_e5template instead of thesmalltemplate 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