- The minimum supported version of Unity is now 2020.1. #1459
- Upgraded Unity Entities to 0.14.0-preview.18. #1463
- Projects now require the
Unity Web Request
built-in package to compile for iOS and Android.
- Projects now require the
- Adding an entity to the
Snapshot
class with a duplicate entity ID now throws an exception. #1479
- Added
MeansImplicitUse
attribute toRequireAttribute
to reduce warnings in Rider IDE. #1462 - Added Event Tracing API. #1452
- Added tooltips to the SpatialOS Project Settings. #1470
- Added new features to the
Snapshot
class #1479- Added the
Contains(EntityId entityId)
method to check if snapshot already contains anEntityId
- Improved the search for next available
EntityId
, it will no longer return already usedEntityId
s. Snapshot
now auto-addsPersistence
when adding entitiesSnapshot
now implementsIDisposable
- Added the
- Upgrade to Worker SDK v14.8.0. #1458
- Migrated launch configurations to latest game templates. #1457
- Multithreaded component serialization through
SystemBase
jobs. #1454 - Upgrade Unity Burst to 1.3.5. #1467
- Removed outline and background around component info button in the Worker Inspector. #1468
- Refactored the
BuildContext
class. #1461- Introduced a
BuildContextSettings
struct, which is required byGetBuildContexts
. - Changed
BuildConfig
class visibility frominternal
topublic
. - Added more testing around
BuildContext
.
- Introduced a
- Fixed an issue where authority changes returned by
ComponentUpdateSystem.GetAuthorityChangesReceived()
were returned in order from newest to oldest. #1465 - Fixed a bug where the build system would throw a null reference exception if you don't have a configuration for a worker type. #1461
- Fixed an incorrect callback registration for entity creation/removal in the
WorldCommandSender
. #1473 - Fixed the
TextField
indentation issue in the Worker Inspector due to nestedVisualElement
containers. #1480
- The
Authority
field on Readers and Writers has been changed toHasAuthority
. It now returns a bool to indicate whether you have authority over the component it represents. #1364- This no longer supports AuthorityImminentLoss.
- ComponentUpdateSystem no longer has the API
GetAuthority
,GetComponent
, andHasComponent
. #1364- Use the Unity Entities
EntityManager
instead.
- Use the Unity Entities
- The GDK now depends on .NET Core v3.1.3xx instead of v2.2.2xx. #1443
- Removed APIs for AuthorityLossImminent. #1451
- All authority changes to
AuthorityLossImminent
will now be dropped, and callbacks will no longer trigger.
- All authority changes to
- Removed the
AuthoritativeEntityResolver
. The implementation was fundamentally flawed. #1453
- Added capability to test commands through the
MockConnectionHandler
. #1437
- Updated the pinned Runtime version to
14.5.4
. #1446
- Fixed an
IndexOutOfRangeException
that could be thrown when editing your 'Build Configuration' asset. #1441 - The 'Build Configuration' Inspector window will no longer report your Android SDK installation as missing if you have a completely fresh Unity installation with the bundled Android SDK. #1441
- Fixed a bug where having spaces in the path to your project would cause the 'Local launch' and 'Launch standalone client' menu options to fail on MacOS. #1442
- Fixed a faulty sync point caused by using
ComponentDataFromEntity
of theWorkerSystem
. #1430 - Fixed a bug where the Transform Sync Feature Module would not correctly apply the
Is Kinematic
option. #1456
- Added C# bindings for C Event Tracing API. #1440
- Added native classes for IO operations in Event Tracing API. #1444
- Removed the
View
class and its generated storage classes. #1364
- The
GetResponse<T>(CommandRequestId)
method in theIDiffCommandResponseStorage
andCommandSystem
now returns aT?
instead ofMessageSpan<T>
#1428
- Added support for multiple annotations in Code Writer API. #1427
- Prevent building workers with Unity Editor compile errors. #1425
- Upgrade to Worker SDK v14.7.0. #1434
- Fixed a bug where the entity list in the Worker Inspector does not refresh when switching to a worker with no entities checked out #1432
- Build targets which are marked as 'Build', but not 'Required' are now properly skipped if build support is not installed. #1435
- The
PrefabPreprocessor
will now correctly find and preprocess your prefabs. #1438
- All generated C# enums will now start from 0, being shifted to schema values on serialization and shifted back to C# values on deserialization. #1412
- A warning will be generated when enums defined in schema do not start from 0.
- Removed Windows x86 build support. #1421
- GameObjectCreation feature module now links entity types with prefabs through EntityRepresentationMapping assets. #1393
- See the upgrade guide for detailed upgrade instructions for this breaking change.
IEntityGameObjectCreator.PopulateEntityTypeExpectations
now only needs to specify what SpatialOS components it needs for spawning an entity, such asPosition
.GameObjectCreationHelper.EnableStandardGameObjectCreation
now requires a non-nullEntityRepresentationMapping
to be passed in.
- Added
map<k,v>
support to the Worker Inspector window. #1403 - Added
Open inspector V2
menu item that opens the new inspector in the browser. #1407 - Added the option to set
UseExternalIp
using the command line argument+useExternalIp
with theCommandLineConnectionParameterInitializer
. #1409 - Added support for flag arguments in
CommandLineParser
. #1409 - Added
Scripting Backend
option dropdown to the Build Configuration UI. #1411 - Added
Allow Debug
toggle to the Build Configuration UI. #1413- Enabling the option allows .NET debuggers (Rider/Visual Studio) to use breakpoints while in the Unity Player.
- Added
Authority
type field toIComponentMetaclass
. #1393 - Added info button on the component details in the Worker Inspector Window that prints ComponentID and schema filepath to log #1423
- Added an option to hide empty collections in worker inspector through a context menu (right-click). #1417
- Moved Gdk Tools Configuration to the Unity "Project Settings" window under
Spatial OS
. #1408
- Fixed a bug in the Worker Inspector where component foldouts were being rendered too often, causing poor performance when the entity had many components or very complex components. #1403
- Fixed minor indentation issue in generated code caused by newline formatting. #1424
- Fixed a bug where
CommandSender
objects would not be made valid again after being re-injected. #1429
- Added
com.unity.test-framework
andcom.unity.test-framework.performance
as dependencies to theio.improbable.gdk.testutils
package. #1416- In addition, both packages have been removed from the playground
manifest.json
.
- In addition, both packages have been removed from the playground
- Added a "C# Editor Output Directory" field to the GDK Tools Configuration. #1376
- This specifies where Editor-only code is generated to.
- This defaults to
Assets/Generated/Editor
.
EntityId
now implementsIComparable<EntityId>
. #1375- The
ComponentDatabase
now exposes a non-genericGetComponentId(Type type)
static method. #1379 - Added a new "Worker Inspector" Editor window. #1375 #1379 #1382
- This window displays worker information like: worker flags, worker ID, and worker type.
- This window also displays the entities that a worker has checked out.
- For each entity checked out, you can view the components on that entity and whether the worker is authoritative over that component.
- Each component can have an icon associated with it, set through a schema annotation. #1385
- Each component's data will also be rendered in the Worker Inspector, with the exception of
map<k, v>
fields. (This will come in a future release!) #1387 #1391 #1392 #1396 #1401
- Added two ways to instantiate valid
EntitySnapshot
objects. #1401EntitySnapshot.Empty()
to create an emptyEntitySnapshot
new EntitySnapshot(params ISpatialComponentSnapshot[] components)
to create and seed theEntitySnapshot
with some data.
- Fixed memory corruption in SpatialOS components with more than 16 fields. #1378
- Added tests in code generator for name clashes. #1380
- The
test-project
no longer contains illegal schema.
- The
WorkerConnector.HandleWorkerConnectionFailure
has been removed andWorkerConnector.Connect
now throws exceptions for connection errors instead. #1365WorkerConnector
no longer destroys itself inDispose
. #1365MultiThreadedSpatialOSConnectionHandler
andSpatialOSConnectionHandlerBuilder.SetThreadingMode
have been removed. #1367- Command request IDs are now typed as
CommandRequestID
instead oflong
. #1372
- Added the ability to select a specific cluster for deployments in the Deployment Launcher. #1357
- You can select either a region or a cluster, but not both!
- Added non-generic overloads for the
EntityTemplate
class which allow you to useISpatialComponentSnapshot
s directly. #1360 - Extracted the world selection UI element from the Network Analyzer window to a
WorldSelector
element. #1316
- GDK Tools Configuration window now autosaves. #1356
- The SpatialOS Runtime version has been updated to
14.5.2
. #1373
- Invalid JSON is now logged if there is an error parsing the codegen output. #1353
- The Mobile Launcher will no longer break if Android build support is not installed. #1354
- Fixed a bug in the
EntityTemplate
class where callingAddComponent
with anEntityAcl.Snapshot
would incorrectly apply its write access #1360 - The Deployment Launcher will now generate Dev Auth Tokens using the environment specified in the GDK Tools Configuration. #1366
- Fixed a bug where the Network Analyzer window would throw exceptions after being opened. #1316
- Produce code coverage reports in tests #1359
- Replaced code generated ReferenceProviders with generic version. #1358
- Refactor callbacks API. #1348
- Added a convenience method to the
MockConnection
for removing entities and their components. #1370
- The minimum version of Unity that the GDK supports is now 2019.3. You need to upgrade your Unity project. #1336
- Upgraded the
com.unity.entities
packages to0.9.1-preview.15
. #1339- Authority in ECS is no longer a
SharedComponentData
, but instead a tag component. ComponentAuthority
has been renamed toHasAuthority
.- No need to filter your ECS query anymore, instead match for
HasAuthority
. - The
UpdateInSubSystem
attribute has been removed. - Built-in Unity AssetBundle and UI Elements modules are now required.
- Burst is now enabled for all PC platforms.
- Component replication will no longer attempt to replicate components the worker does not have authority over.
- Authority in ECS is no longer a
- Added new methods to
Snapshot
utility class. #1338GetNextEntityId()
returns the next available entity ID.AddEntity(EntityId entityId, EntityTemplate entityTemplate)
adds an entity to the snapshot with a given entity ID.
- Added an additional
AddComponent
method to theEntityTemplate
class which does not require write-access to be given. #1338- This allows users to add undelegated components on entities.
- Added debug names to entities shown in EntityDebugger. #1342
- Fix
PlayerHeartbeatInitializationSystem
to use the right components for filtering. #1352
- Added component result type filters to playground QBI queries. #1338
- Replaced
InitUISystem
with theInitUIBehaviour
script on theCharacter
prefab. #1338 - Removed
ViewCommandBuffer
as it is no longer required. #1344 - Renamed faulty named
DiffSpawnCubeCommandStorage
toCommandDiffStorageBase
. #1345
- The
DeploymentLauncher
project has an additional required argumentruntime_version
. If you invoke this manually throughdotnet
, you'll need to provide this argument. #1299 - Schema components in ECS no longer have a
ComponentId
property. #1308- You should use
ComponentDatabase.GetComponentId<T>()
instead.
- You should use
CustomSpatialOSSendSystem
is no longer available. #1308- The Player Lifecycle feature module now provides an
EntityId
in itsCreatePlayerEntityTemplate
callback. #1315- You will have to change your callback from
(string clientWorkerId, byte[] serializedArguments)
to(EntityId entityId, string clientWorkerId, byte[] serializedArguments)
.
- You will have to change your callback from
- Added the
PopulateEntityTypeExpectations
method toIEntityGameObjectCreator
. #1333- Use this method to define the set of components expected on an entity to be able create GameObjects for a given entity type.
- Added
string entityType
as an argument toIEntityGameObjectCreator.OnEntityCreated
. #1333- This means that your entities must have the
Metadata
component to use the GameObject Creation Feature Module.
- This means that your entities must have the
- Added ability to construct a
CodeWriter
using just the raw string content. #1275- This will override anything defined through the ergonomic
CodeWriter
API.
- This will override anything defined through the ergonomic
- Introduced a new
CodegenJob
model. #1275 - The SpatialOS Runtime version is now pinned by the GDK. This has been initially set to
14.5.0
.- You can override this version in the GDK Tools Configuration. #1289
- This version (or your override) will be used in both local deployments started through the editor and cloud deployments started through the Deployment Launcher.
- The currently selected version will be displayed in the Deployment Launcher. #1302
- Added a
Dump()
method toCommandLineArgs
to format all the parsed command line arguments into a string. This can aid you in debugging issues relating to command line args. #1312 - Added the
EntityReservationSystem
which automatically keeps a pool of reserved entity IDs. #1314- The system's
TakeAsync(count)
andGetAsync()
API can be used to obtain entity IDs for spawning, without needing callbacks. - There is also a non-async
TryTake(count, out EntityId[])
andTryGet(out EntityId)
version which allows for reservations to fail.
- The system's
- Downgraded the level of several code generator logs from
Info
toTrace
. #1277 - Upgraded the Worker SDK to
14.5.0
. #1317 - Upgraded the Platform SDK used by the Deployment Launcher to
14.5.0
#1317 - Changed the GameObject Creation module to run for entities that match the minimum component set required by the creator, 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.
- Fixed a bug where code generation would happen on every Unity compilation, despite the code generator returning successfully. #1294
- Fixed a bug where dotnet output from the code generator would cause exceptions to be thrown. #1294
- Fixed a bug where the Mobile Launcher window wouldn't find Android devices that contained hyphens in their product name. #1288 #1296
- Fixed a bug where component events were not dropped properly when the entity-component pair was removed from the View. [#1298])(#1298)
- Fixed a bug where Reader/Writer/CommandSender/CommandReceiver fields would not have their state set to invalid when the underlying constraints were not met. #1297
- This bug would manifest itself in situations like a
Reader
reference attempting to read data that does not exist in your worker's view anymore.
- This bug would manifest itself in situations like a
- Fixed the Mobile Launcher being unable to find the Android SDK when using the embedded installation. #1319
- Fixed a bug where losing a
Reader
due to QBI would break the monobehaviour that required it. #1326
- Removed the old
CodegenJob
model. #1277
- Ported all modules to the new
CodegenJob
model. #1276 - Running forced code generation now deletes the
ImprobableCodegen.marker
file. #1294 - Added tests coverage for the interaction between unlinking a GameObject and Reader/Writer/CommandSender/CommandReceiver state. #1295
- Reduce complexity in
ViewDiff
andMessagesToSend
classes. #1290 - De-duplicated code for generated
ComponentDiffStorage
instances. #1290 Improbable.Gdk.Core.EntityId
is now a readonly struct. #1290- The Playground project now uses QBI instead of CBI. #1370
- Added
MockWorld
andMockBase
classes to theImprobable.Gdk.TestUtils
package. These are designed as a framework for testing Core code. #1305 - Switched internal profiling to use new
ProfilerMarker
API. #1311 - Changed
MockWorld.Options.AdditionalSystems
fromType[]
toAction<World>
. #1330
- Your generated code Assembly Definition file now needs to have
allow unsafe code
selected to compile. #1255 - The
RedirectedProcess.WithArgs
API will now concatenate arguments, instead of replacing the previously provided arguments. #1260 - Building for Android clients now requires the Android NDK to be installed and configured on your machine. #1265
- Renamed
AndroidLaunchUtils
toAndroidUtils
, andiOSLaunchUtils
toiOSUtils
. #1269
- Added public toolkit for writing code generators. #1240 #1243 #1244 #1245 #1250
- Added support for the
cn-production
environment. - Added
RedirectedProcess.Spatial
wrapper for calling thespatial
CLI. This wrapper automatically uses the current project environment. #1260 - Added generation of code generator run configurations for Jetbrains Rider, Visual Studio, and the
dotnet
CLI. #1256- This means you no longer need to keep the Unity Editor constantly open to iterate on generators.
- The code generator now logs an error when an input schema source directory does not exist. #1256
- Upgrade to Worker SDK v14.4.0. #1260
- The
Raknet
,Tcp
, andKcp
network protocols have been deprecated. Please useModularKcp
andModularTcp
instead. ModularUdp
has been renamed toModularKcp
.
- The
- Changed the Worker SDK package installed for iOS. #1268
- Changed
c-static-fullylinked-arm-clang-ios
toc-static-arm-clang-ios
. - Changed
c-static-fullylinked-x86_64-clang-ios
toc-static-x86_64-clang-ios
.
- Changed
- Upgrade to Worker SDK v14.4.1. #1274
- Fixed a bug where build targets which were not marked as required were not skipped if the user did not have the build support installed. #1257
- Fixed a bug where code generation would fail due to
dotnet new
failing to run. #1262 - Fixed a bug where
schema_compiler
errors would be swallowed by the code generator. These should now appear in the Unity Editor and the log file as expected. #1266
- Implemented a new CodeWriter in the code generator which provides a fluent interface for generating C# code. #1237
- The
CodeGenerationLib
has been migrated to the newCodeWriter
.
- The
- Added support for defining namespaces, structs, classes, enums and methods in the new CodeWriter. #1239
- Ported test-project to new CodeWriter. #1241
- Ported build system module to new CodeWriter. #1242
- Ported gameobject creation module to new CodeWriter. #1247
- Ported core module to new CodeWriter. #1247 #1248 #1249 #1251 #1252 #1253
- Removed all Text Template Transformation Toolkit (T4) references and dependencies. #1254
- Simplified dirtyBits logic and code generation #1255
- The DeploymentLauncher now uses Platform SDK v14.4.0. #1260
init.sh
andinit.ps1
now support the--china
and-china
flag respectively to download from thecn-production
environment. #1261- Simplified code generation for Command classes and relevant interfaces. #1263
- Added
--force
flag to the CodeGenerator project to skip the dirty checks and re-generate everything. #1263 - Added the
targetiOSSdk
commandline argument for CI builds for selecting eitherdevice
orsimulator
target when building iOS. #1269
- Added support for Unity build callbacks such as
IPostprocessBuildWithReport
. #1228- During a build you can now access the
WorkerBuilder.CurrentContext
field which contains all SpatialOS related build information.
- During a build you can now access the
- Enabled support for QBI frequency in the QBI Helper Module. #1231
- Use the
WithMaxFrequencyHz
method when building anInterestQuery
to define your query's frequency.
- Use the
- Fixed a bug where empty list, maps, or options in a component update would not be applied correctly. #1229
- Fixed missing log path error when printing the Unity PlayerConnection debug port. #1232
- A
WorkerSystem
now exposes the underlying Worker'sIsConnected
property. #1217
- Fixed an issue where the Deployment Launcher window would feel unresponsive due to saving changes after every input. #1219
- It will now wait for at least 1 second to elapse after the last change before writing the configuration back to disk.
- Fixed issues (#957, #958) where valid schema would generate invalid code due to name clashes. #1222
- The offending schema properties will no longer be generated and are now logged in the Unity Editor.
- Changed the default Locator port from 444 to 443. #1220
- Reactive components have been removed completely. #1195
- If you are using reactive components, please see our documentation on the ECS workflow.
- Codegen for the GameObjectCreation package has been moved into the package. If the package is not used, readers and writers will no longer be generated. #1196
- Empty component updates will no longer trigger callbacks when received. #1211
- Added the ability to select which Android device or emulator to launch an application on. #1194
- Generated Worker ID's for local development are now smaller and easier to read for debugging. #1197
- Upgraded to Worker SDK 14.2.1. #1208
- Versioning scheme for the SDK and Mobile SDK packages have now changed to align with the GDK for Unity version.
- Changed the default network type to ModularUDP with packet compression. #1212
- Fixed a bug where the Deployment Launcher window would accept tags with 33 characters. #1202
- Fixed a small memory leak with command response callbacks using MonoBehaviours. #1205
- Fixed an issue where events would trigger the
OnUpdate
callback on readers and writers. #1211
- Cleaned up Subscriptions and Callbacks. #1200
- Replaced usage of
GuardedAuthorityCallbackManagerSet
with more genericGuardedCallbackManagerSet
. - Removed unused
EntitySubscriptions
class. - Formatting pass on all Subscriptions and Callbacks files.
- Replaced usage of
- Moved the CompressedQuaternion and FixedPointVector partials to the transform synchronization package. #1201
- The
GetComponentId<T>()
andGetSnapshotComponentId<T>()
methods have been moved fromDynamic
toComponentDatabase
. #1173
- Added commands and world commands tabs to the Network Analyzer window. #1174
- Fixed a bug where the
TransformSynchronization
MonoBehaviour would not reset when disabled. #1169 - Fixed a bug where the
UnlinkGameObjectFromEntity
method in theEntityGameObjectLinker
would not cleanup thegameObjectToComponentsAdded
dictionary. #1169 - Fixed a bug where the Network Analyzer would not properly render all components/commands in the scroll view. #1175
- Fixed a bug where the code generator would not re-generate files when changes were made to existing schema files. #1181
- Added the
IComponentMetaclass
andICommandMetaclass
interfaces. Where we previously would use reflection to find instances of various component/command related types, we now lookup through generated metaclasses. #1173 - Code Generator now enforces platform line endings. #1189
- Added network statistics collection for both sending and receiving messages. #1135
- This adds a single ECS system
NetworkStatisticsSystem
. This system will only run when running your workers inside the Unity Editor. - Additionally, there are a set of data types supporting this system which can be found under the
Improbable.Gdk.Core.NetworkStats
namespace.
- This adds a single ECS system
- Added the Network Analyzer window, which allows you to view live bandwidth usage per component.
SpatialOS->Window->Network Analyzer
#1148
- Fixed a bug where
MonoBehaviour
s withWorkerType
attributes would not be enabled even if the owning worker's type was a match for theWorkerType
attribute. #1147 - Fixed a bug where the mobile configuration would get reset whenever assembly got reloaded or you entered Playmode. #1157
- Added test coverage for
WorkerType
attribute and its interplay with[Require]
fields in thetest-project
. #1147 - Refactored internals of code generation for modular codegen. #1151.
- Use
dotnet new
to generate a skeleton project then link in the various modules from each package. - This project is created in the
build/codegen
directory and is then executed to actually generate the code.
- Use
- Workers will now log their
PlayerConnection
ports to SpatialOS after connecting. This port can be used for connecting the Unity profiler to workers running in the cloud. #1128- Note that this will only happen if the worker was built as a "Development Build".
- Added a new Unity Editor window for forwarding a port from a worker that is running in the cloud. #1133
- You can find this window in the Unity Editor menu at: SpatialOS > Port Forwarding.
- This can be used to connect the Unity profile to workers running in the cloud.
- Upgraded the project to be compatible with
2019.2.0f1
. - Upgraded to Worker SDK 14.0.2.
- Fixed a bug where recursive options in schema types would cause a Mono hard crash. #1131
- Any fields in a schema type that are a recursive option will now be skipped.
- This is a workaround until full recursive option support is implemented.
- Work-around for Mac Launcher using wrong executable name. Generating hardcoded
launcher_client_config.json
for Mac builds. #1142
- Renamed the public field
AnonymousAuthenticationPort
toLocatorPort
on theAlphaLocatorFlow
class and theRuntimeConfigDefaults
static class. #1105 - Upgraded to Worker SDK
14.0.1
. This brings a number of breaking changes. #1112Vector3f
andVector3d
are no longer available in the schema standard library.- The
Improbable.Coordinates.ToSpatialVector3d()
method has been removed. LocatorFlow
andAlphaLocatorFlow
have been merged.- The implementation of the old
LocatorFlow
has been removed. - The
ConnectionService.AlphaLocator
enum value has been removed.
- The
ProjectName
,SteamDeploymentTag
, andSteamTicket
constants have been removed from theRuntimeConfigNames
static class.
- Added the ability to connect to an arbitrary host/port combo for the
AlphaLocatorFlow
. #1105 - Added a
SpatialdManager
class for managing local deployments withSpatialD
intoio.improbable.gdk.testutils
. #1104 - Added the ability to specify a snapshot to be used when launching a deployment in the Editor. #1098
- Added the ability to select the modular UDP network type as part of the Worker SDK 14.0.1 upgrade. #1112
- Schema compilation error messages are now concatenated within the
GenerateCode
class before shown in the Console, creating only one error message instead of several. #1107 - Changed some reactive components for events and commands that were not correctly encapsulated with the
USE_LEGACY_REACTIVE_COMPONENTS
symbol. #1113 - Improved performance in SendComponentSystem through better job handling.
- Fixed a bug where
RedirectedProcess.RunAsync()
could deadlock if you did not provide aCancellationToken
. #1102 - Fixed a bug in the
AlphaLocatorFlow
where the default implementation ofGetDevelopmentLoginTokens
did not respect the host/port fields. #1105 - Fixed a bug where
AlphaLocatorFlow.CreateAsync()
could deadlock. #1108
- Added tests for the
ReceptionistFlow
class. #1095 - Added tests for the
CommandLineConnectionFlowInitializer
class. #1096 - Added tests for the
CommandLineConnectionParametersInitializer
class. #1103 - Added
spot
downloading toinit.sh
&init.ps
into theio.improbable.worker.sdk
package. #1104 - Added tests for the
AlphaLocatorFlow
class. #1108 Option<T>
is now explicitly immutable as areadonly struct
. #1110- Removed unused arguments from worker configuration files. #1112
- Renamed
Improbable.Gdk.Core.EntityQuerySnapshot
toImprobable.Gdk.Core.EntitySnapshot
. TheImprobable.Gdk.Core.Commands.WorldCommands.EntityQuery.ReceivedResponse
has been updated accordingly. #1053 DynamicSnapshot
andDynamicConverter
have been collapsed intoDynamic
. #1053- The delegates from all of these classes are now available in the
Dynamic.VTable<TData, TUpdate, TSnapshot>
struct. Dynamic.IHandler.Accept
now takes aDynamic.Vtable<TData, TUpdate, TSnapshot
parameter.
- The delegates from all of these classes are now available in the
- 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 theio.improbable.gdk.testutils
package. Please use theMockConnectionHandler
in theio.improbable.gdk.core
package instead. #1085 - Removed the
TestMonoBehaviour
from theio.improbable.gdk.testutils
package. #1085
- Added a
bool TryGetComponent<T>(out T component);
method to theSpatialOSEntity
struct. This can help reduce boilerplate when writing customIEntityGameObjectCreator
implementations. #1049 - Added the
void AddComponentSnapshot<T>(T componentSnapshot)
andbool TryGetComponent<T>(out T componentSnapshot)
methods to theImprobable.Gdk.Core.EntitySnapshot
struct. #1053 - Added a
EntitySnapshot GetEntitySnapshot()
method to theImprobable.Gdk.Core.EntityTemplate
class. #1053 - Added methods for conversion of
Coordinates
,EdgeLength
,FixedPointVector3
andCompressedQuaternion
to/from native UnityVector3
andQuaternion
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
- Upgraded to Worker SDK 13.8.2. #1052
- The new
Entity
schema type is deserialized as anImprobable.Gdk.Core.EntitySnapshot
. #1053
- The new
- The conversion methods for
FixedPointVector3
andCompressedQuaternion
have been moved fromTransformUtils
to their generated structs and are now public. #1063
- The world command sender reactive components and reactive component systems are now properly conditionally compiled. #1059
- Subscribing to the
World
,ILogDispatcher
,WorkerId
, andLinkedGameObjectMap
types no longer cause different MonoBehaviour/GameObject subscriptions to cross-talk. This previously would result in Monobehaviours disabling unexpectedly. #1071
- Added extension methods on the
SchemaObject
struct for easy serializing/deserializing of theEntity
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
- Renamed the
buildTarget
command line argument tobuildEnvironment
. #1012 - All GDK packages now have an
io.improbable
prefix instead ofcom.improbable
. #894
- Added the
LinkedGameObjectMap
class for finding theGameObject
(s) linked with a specifiedEntityId
. #1013- This can be used with the
[Require]
annotation to inject it into yourMonoBehaviours
provided you are using theGameObjectCreation
feature module. For example:[Require] private LinkedGameObjectMap gameObjectMap;
- This can be used with the
- Added the ability for the build system to build specific targets of a given build environment. #1012
- Use the
buildTargetFilter
command line argument to pass in a comma delimited list of build targets to filter for. For example,+buildTargetFilter win,macos
.
- Use the
- Added two new GDK packages:
io.improbable.worker.sdk
andio.improbable.worker.sdk.mobile
which contain the underlying Worker SDK packages for Windows/MacOS/Linux and Android/iOS respectively. #894 - You may now
[Require]
aWorkerId
in MonoBehaviours. For example:[Require] private WorkerId workerId;
. #1016 - iOS builds now perform a post processing step on the XCode project to ensure x86_64 and arm libraries from the SpatialOS Worker SDK are separated. #1040
PlayerLifecycleHelper.IsOwningWorker
will now return false instead of throwing an exception if the entity is not in your worker's view.
- Fixed a bug where
PlayerLifecycleHelper.IsOwningWorker
would throw an exception if the entity was in your worker's view.
- Stopped throwing a
Test Exception
in playground. #1011 - The embedded
DownloadCoreSdk
dotnet
project has been removed fromImprobable.Gdk.Tools
. #894 - The
PluginPostprocessor
tool has been removed fromImprobable.Gdk.Tools
. #894
- The constructor for the
ForwardingDispatcher
now accepts aUnityEngine.LogType
instead ofImprobable.Worker.CInterop.LogLevel
as its parameter. #987 - The schema for the Transform Synchronization feature module has been optimised to reduce bandwidth. If you use this module, please make use of the updated helper methods and regenerate your snapshot. #990
- The
Location
andVelocity
schema types have been replaced by theFixedPointVector3
type.- The location and velocity fields are now
Q21.10
fixed point values.
- The location and velocity fields are now
- The
Quaternion
schema type has been replaced by theCompressedQuaternion
type.- Rotation is now compressed from 4 floats to a single uint32.
- The
- The worker abstraction & connectors have been changed significantly. See the Upgrade guide for more details on how to upgrade. #981
- The
DefaultWorkerConnector
andDefaultMobileWorkerConnector
classes have been removed. - The
WorkerConnector
has had the following abstract methods removed:ConnectionService GetConnectionService()
ConnectionParameters GetConnectionParameters(string workerType, ConnectionService service)
LocatorConfig GetLocatorConfig()
AlphaLocatorConfig GetAlphaLocatorConfig(string workerType)
ReceptionistConfig GetReceptionistConfig(string workerType)
- The
WorkerConnector
has had the following virtual methods removed:string GetPlayerId()
string GetDisplayName()
string SelectDeploymentName(DeploymentList deployments)
string GetDevAuthToken()
string SelectLoginToken(List<LoginTokenDetails> loginTokens)
string GetDevelopmentPlayerIdentityToken(string authToken, string playerId, string displayName)
List<LoginTokenDetails> GetDevelopmentLoginTokens(string workerType, string playerIdentityToken)
- The
WorkerConnector
has also had the following changes:- The
public Worker Worker;
field is now thepublic WorkerInWorld Worker;
field. - The
public async Task Connect(string workerType, ILogDispatcher logger)
method is nowprotected async Task Connect(IConnectionHandlerBuilder builder, ILogDispatcher logger)
.
- The
- The
Worker
class has had the following changes:- The
public Connection Connection { get; private set; }
property has been removed. - The
public World World { get; private set; }
property has been moved to theWorkerInWorld
class. - The
public static async Task<Worker> CreateWorkerAsync(ReceptionistConfig parameters, ConnectionParameters connectionParameters, ILogDispatcher logger, Vector3 origin)
method has been removed. - The
public static async Task<Worker> CreateWorkerAsync(LocatorConfig parameters, ConnectionParameters connectionParameters, ILogDispatcher logger, Vector3 origin)
method has been removed. - The
public static async Task<Worker> CreateWorkerAsync(AlphaLocatorConfig parameters, ConnectionParameters connectionParameters, ILogDispatcher logger, Vector3 origin)
method has been removed.
- The
- The
ReceptionistConfig
,LocatorConfig
, andAlphaLocatorConfig
structs have been removed. - The
WorkerSystem
no longer has apublic readonly Connection Connection;
field
- The
- The
CommandLineUtility
static class has been replaced with aCommandLineArgs
stateful class. #981 - The
ILogDispatcher
interface now has apublic Worker Worker { get; set; }
property instead of apublic Connection Connection { get; set; }
property. This of course, propagates down to all implementations of theILogDispatcher
interface. #981
- Added a mobile launcher window containing all the settings and functionality to allow you to launch your apps for iOS and Android. To open it, in the Unity Editor, select SpatialOS > Mobile Launcher.
- Added a
IEnumerable<T> FilterOption<T>(this IEnumerable<Option<T>> enumerable)
LINQ extension. #981 - Added a
public readonly string WorkerId;
field to theWorkerSystem
class. #981 - Added a
IConnectionFlow
interface which describes how a connection can be created. #981- Added a
ReceptionistFlow
,LocatorFlow
, andAlphaLocatorFlow
which implementIConnectionFlow
.
- Added a
- Added a
IConnectionFlowInitializer<TConnectionFlow>
interface which describes how the parameters for a particular connection flow are initialized. #981- Added a
CommandLineConnectionFlowInitializer
which implementsIConnectionFlowInitializer<ReceptionistFlow>
,IConnectionFlowInitializer<LocatorFlow>
, andIConnectionFlowInitializer<AlphaLocatorFlow>
. - Added a
MobileConnectionFlowInitializer
which implementsIConnectionFlowInitializer<ReceptionistFlow>
andIConnectionFlowInitializer<AlphaLocatorFlow>
.
- Added a
- Added a
IConnectionParameterInitializer
which describes how the parameters for a worker connector are initialized. #981- Added a
CommandLineConnectionParameterInitializer
which implementsIConnectionParameterInitializer
. - Added a
MobileConnectionParametersInitializer
which implementsIConnectionParameterInitializer
.
- Added a
- The
IConnectionHandler
interface now has the following methods: #981string GetWorkerId();
List<string> GetWorkerAttributes();
- Added a
WorkerInWorld
class which inherits fromWorker
and adds ECS specific implementation details to theWorker
. #981
- Moved the configuration of the Local Runtime IP from the GDK tools configuration window to the mobile launcher window.
- Fixed a bug where invalid characters in your PATH elements would throw exceptions and break code generation. #986
- Fixed a regression in the
SetKinematicFromAuthoritySystem
that failed to toggle a rigidbody's kinematic state onTransformInternal
authority changes. #988 - Fixed a regression in the code generator where spaces in your path would cause code generation failures. #991
- 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 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.33
frompreview.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
IComponentData
types, you must explicitly register them. Please view Unity's example onRegisterGenericComponentType
in the changelog linked above. - System groups API has changed, systems without a group are automatically added to the
SimulationSystemGroup
which runs onUpdate
.- The Unity Editor will print helpful warnings if any systems are not grouped properly.
- Removed
BlittableBool
, asbool
is now blittable. #965 - Fixed a bug where the generated
ReceivedUpdates
component was not correctly wrapped in theDISABLED_REACTIVE_COMPONENTS
define. #971- This means that if you have
DISABLE_REACTIVE_COMPONENTS
set, theReceivedUpdates
types will no longer be available.
- This means that if you have
- Upgraded the project to be compatible with
2019.1.3f1
. #951 - 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 aDevAuthToken.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.
- Added a setting in
- The schema descriptor is no longer deleted when you select
SpatialOS > Clean all workers
from the Unity Editor. #969
- 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
- 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 thesmall
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
- Removed the
Improbable.Gdk.Mobile.Android
andImprobable.Gdk.Mobile.iOS
packages. All functionality is now available inside theImprobable.Gdk.Mobile
package.
- Added support for Windows x86 builds.
- Added a user-friendly error message when the build system fails to find a SpatialOS Build Configuration instance.
- Added two menu items:
SpatialOS > Launch mobile device > Android on local
andSpatialOS > Launch mobile device > Android on cloud
. - Added a new, project-generic, deployment launcher feature module,
com.improbable.gdk.deploymentlauncher
. This editor-only module includes functionality to:- Upload assemblies from the editor.
- Launch and stop deployments from the editor.
- View basic information about live deployments (start time, region, number of connected workers) in the editor.
- Added a
Improbable.Gdk.Core.Editor
asmdef.- Moved
SingletonScriptableObject<T>
from the build system feature module into this assembly and made it public. - Pulled out the
UiStateManager
from theBuildConfigEditor
into this assembly and made it public.
- Moved
- Exceptions thrown in user-code callbacks no longer cause other callbacks scheduled for that frame to not fire. Instead, the exceptions are caught and logged with Debug.LogException.
- Upgraded the Worker SDK version to
13.7.1
. - Updated the default method of loading a Development Authentication Token to search for a
DevAuthToken.txt
asset at the root of anyResources
folder. - Removed the
AndroidClientWorkerConnector
andiOSClientWorkerConnector
and their specific scenes. You can now use theMobileClientWorkerConnector
and itsMobileClientScene
to connect to a mobile device.
- Fixed a bug where if an entity received an event and was removed from your worker's view in the same ops list, the event would not be removed.
- Fixed a bug where clicking on
SpatialOS
>Generate Dev Authentication Token
would not always refresh the asset database correctly. - Fixed a bug where requireables on a GameObject linked to the worker entity were not injected properly.
- Fixed a bug where the
DevAuthToken.txt
asset would be imported from an invalid AssetDatabase path.
- Removed
clientAccess
from theAddPlayerLifecycleComponents
signature. We now construct the client access attribute within the helper.
- Added a static helper in the
EntityTemplate
class to construct worker access attributes. - Added an optional callback as an argument to the
RequestPlayerCreation
method inSendCreatePlayerRequestSystem
. This callback is invoked upon receiving a response to a player creation request. - Added a new Query-based interest helper module,
com.improbable.gdk.querybasedinteresthelper
.InterestTemplate
provides functionality to ergonomically add, replace and clear queries from an Interest component.InterestQuery
reduces boilerplate code required to construct interest queries.Constraint
contains static methods to easily create constraints for an interest query.
- Added a
WithTimeout(TimeSpan timeout)
method to theRedirectedProcess
class. This allows you to set a timeout for the underlying process execution. - Added a
Improbable.Gdk.Core.Collections.Result<T, E>
struct to represent a result which can either contain a valueT
or an errorE
. - Added Scripting Define Symbol
DISABLE_REACTIVE_COMPONENTS
. Using this symbol will disable all reactive componts and systems. - Added a
WorkerFlagReader
which you can subscribe andRequire
. This allows you to:- Add callbacks for changes to worker flags.
- Read the value of worker flags.
- The player lifecycle module now dynamically queries for PlayerCreator entities, and sends requests to a random one each time. This removes the reliance on a hardcoded PlayerCreator Entity ID.
- Removed the
Type
suffix from player lifecycle schema types. RedirectedProcess.RunAsync()
now takes aCancellationToken?
as a parameter. This token can be used to cancel the underlying process.- Updated the Unity version to
2018.3.11
.
- Fixed an issue where player creation requests could retry infinitely without logging failure.
- Fixed an issue where if you called
RedirectedProcess.Command(...)
in a non-main thread, it would throw an exception. - Fixed an issue where having the same name for a schema package and a schema component would lead to generating invalid code.
- Tools package now uses PackageManager API instead of parsing manifest.json.
- Updated default snapshot to have more than one PlayerCreator entity.
- Fixed package dependencies.
- Worker flag changes are propagated to the
ViewDiff
. - Exposed
GetWorkerFlag(string name)
on theView
.
- Changed the format of the BuildConfiguration asset. Please recreate, or copy it from
workers/unity/Playground/Assets/Config/BuildConfiguration.asset
. - Command request and responses are no longer constructed from static methods
CreateRequest
andCreateResponse
. Instead, they are constructors that take the same arguments. - The
Require
attribute has moved from theImprobable.Gdk.GameObjectRepresentation
namespace to theImprobable.Gdk.Subscriptions
namespace. - The generated Readers have been renamed from
{COMPONENT_NAME}.Requirable.Reader
to{COMPONENT_NAME}Reader
. - The Reader callback events' names have changed.
On{EVENT_NAME}
is nowOn{EVENT_NAME}Event
.{FIELD_NAME}Updated
is nowOn{FIELD_NAME}Update
.
- The generated Writers have been renamed from
{COMPONENT_NAME}.Requirable.Writer
to{COMPONENT_NAME}Writer
. - The Writer send method names have changed.
Send{EVENT_NAME}
is nowSend{EVENT_NAME}Event
.Send
is nowSendUpdate
.
- The generated command senders in MonoBehaviours have also changed.
{COMPONENT_NAME}.Requirable.CommandRequestSender
and{COMPONENT_NAME}.Requirable.CommandResponseHandler
have been combined and are now called{COMPONENT_NAME}CommandSender
.{COMPONENT_NAME}.Requirable.CommandRequestHandler
is now called{COMPONENT_NAME}CommandReceiver
.
- When creating GameObjects, the
IEntityGameObjectCreator.OnEntityCreated
signature has changed fromGameObject OnEntityCreated(SpatialOSEntity entity)
tovoid OnEntityCreated(SpatialOSEntity entity, EntityGameObjectLinker linker)
. - The signature of
IEntityGameObjectCreator.OnEntityCreated
has changed fromvoid OnEntityRemoved(EntityId entityId, GameObject linkedGameObject)
tovoid OnEntityRemoved(EntityId entityId)
.- All linked
GameObject
instances are still unlinked before this is called, however it is now your responsibility to track if aGameObject
was created when the entity was added. - You should now call
linker.LinkGameObjectToSpatialOSEntity()
to link theGameObject
to the SpatialOS entity. - You should also pass-in a list of
ComponentType
toLinkGameObjectToSpatialOSEntity
which you wish to be copied from theGameObject
to the ECS entity associated with theGameObject
.- Note that for the Transform Synchronization feature module to work correctly, you need to set up a linked Transform Component on your GameObject. You also need to link any Rigidbody Component on your GameObject.
- There is no limit on the number of GameObject instances that you can link to a SpatialOS entity. However, you cannot add a component type to a linked GameObject instance more than once.
- Deleting a linked GameObject unlinks it from the SpatialOS entity automatically.
- All linked
SpatialOSComponent
has been renamed toLinkedEntityComponent
.- The field
SpatialEntityId
on theLinkedEntityComponent
has been renamed toEntityId
. - The field
Entity
has been removed.
- The field
- The
Improbable.Gdk.Core.Dispatcher
class has been removed.
- All generated schema types, enums, and types which implement
ISpatialComponentSnapshot
are now marked asSerializable
.- Note that generated types that implement
ISpatialComponentData
are not marked asSerializable
.
- Note that generated types that implement
- Added the
DynamicConverter
class for converting aISpatialComponentSnapshot
to anISpatialComponentUpdate
. - Added a generated ECS shared component called
{COMPONENT_NAME}.ComponentAuthority
for each SpatialOS component.- This component contains a single boolean which denotes whether a server-worker instance has write access authority over that component.
- The component does not tell you about soft-handover (
AuthorityLossImminent
).
- You may now
[Require]
anEntityId
,Entity
,World
,ILogDispatcher
, andWorldCommandSender
in MonoBehaviours. - Added constructors for all generated component snapshot types.
- Added the ability to send arbitrary serialized data in a player creation request.
- Replaced
Vector3f
position inCreatePlayerRequestType
with abytes
field for sending arbitrary serialized data.
- Replaced
- Added
RequestPlayerCreation
to manually request for player creation inSendCreatePlayerRequestSystem
. - Added a menu item, navigate to SpatialOS > Generate Dev Authentication Token, to generate a TextAsset containing the Development Authentication Token.
- Added the ability to mark a build target as
Required
which will cause builds to fail in the Editor if the prerequisite build support is not installed.
- Upgraded the Worker SDK version to
13.6.2
. - Improved the UX of the BuildConfiguration inspector.
- Improved the UX of the GDK’s Tools Configuration window.
- Deleting a GameObject now automatically unlinks it from its ECS entity. Note that the ECS entity and the SpatialOS entity are not also deleted.
- Changed the format of the BuildConfiguration asset. Please recreate, or copy it from
workers/unity/Playground/Assets/Config/BuildConfiguration.asset
. - Building workers will not change the active build target anymore. The build target will be set back to whatever was set before starting the build process.
- Fixed a bug where, from the SpatialOS menu in the Unity Editor, running **SpatialOS ** > Generate code would always regenerate code, even if no files had changed.
- Fixed a bug where building all workers in our sample projects would fail if you have Android build support installed but didn't set the path to the Android SDK.
- Fixed a bug where some prefabs would not be processed correctly, causing
NullReferenceExceptions
inOnEnable
.
- Changed the code generator to use the schema bundle JSON rather than AST JSON.
- If you have forked the code generator, this may be a breaking change.
- Exposed annotations in the code generator model.
- Added a
MockConnectionHandler
implementation for testing code which requires the world to be populated with SpatialOS entities. - Added tests for
StandardSubscriptionManagers
andAggregateSubscription
. - Re-added tests for Reader/Writer injection criteria and MonoBehaviour enabling.
- Reactive components have been isolated and can be disabled.
- Subscriptions API has been added, this allows you to subscribe anything for which a manager has been defined.
- This now backs the
Require
API in MonoBehaviours.
- This now backs the
- Low-level APIs have been changed significantly.
- Added a View separate from the Unity ECS.
- Removed unnecessary
KcpNetworkParameters
overrides inMobileWorkerConnector
where it matched the default values.
- Changed
RedirectedProcess
to have Builder-like API. - Upgraded the project to be compatible with
2018.3.5f1
.
- Fixed a bug where launching on Android from the Unity Editor would break if you have spaces in your project path.
- Fixed a bug where a Unity package with no dependencies field in its
package.json
would cause code generation to throw exceptions. - Fixed a bug where protocol logging would crash Linux workers.
- Added support for the Alpha Locator flow.
- Added support for connecting mobile devices to cloud deployments via the anonymous authentication flow.
- Added option to build workers out via IL2CPP in the cmd.
- Added an example of handling disconnect for mobile workers.
- Added support for launching an Android client from the Editor over ADB.
- Upgraded the Worker SDK version to
13.5.1
. This is a stable Worker SDK release! 🎉 Improbable.Gdk.EntityTemplate
is now mutable and exposes a set of APIs to add, remove, and replace component snapshots- This replaces the
Improbable.Gdk.Core.EntityBuilder
class. - These changes also allow you to reuse an
EntityTemplate
more than once.
- This replaces the
- Upgraded the project to be compatible with
2018.3.2f1
. - Upgraded the entities package to
0.0.12-preview.21
- Disabled protocol logging on Linux workers to prevent crashes. This will be reverted once the underlying issue is fixed.
- Updated the
MobileWorkerConnector
to use the KCP network protocol by default. - Changed the
mobile_launch.json
config to use the new Runtime. - Updated all the launch configs to use the new Runtime.
- Changed the build process in the Editor such that it skips builds that don't have build support rather than canceling the entire build process.
- Note that building via the
Improbable.Gdk.BuildSystem.WorkerBuilder.Build
static method is unchanged.
- Note that building via the
Clean all workers
now cleans worker configs in addition to built-out workers.- Fixed a bug where you could start each built-out worker only once on OSX.
- Code generation now captures nested package dependencies, so the generated schema contains schema components from all required packages. Previously, code generation only generated schema for top-level dependencies, skipping nested packages.
- Fixed a bug where spaces in the path would cause code generation to fail on OSX.
- Fixed an issue in the TransformSynchronization module where an integer underflow would cause a memory crash.
- Fixed a bug where using
Coordinates
,Vector3f
, orVector3d
in a command definition would cause the Code Generator to crash.
- Removed the
Improbable.Gdk.Core.EntityBuilder
class as it was superceded by the updated functionality inImprobable.Gdk.Core.EntityTemplate
.- Removed
CreateSchemaComponentData
from each generated component as it is no longer required by theEntityBuilder
.
- Removed
- Removed
com.unity.incrementalcompiler
package as a dependency of theCore
package.
- Added Frames Per Second (FPS) and Unity heap usage as metrics sent by
MetricSendSystem.cs
. - Added a warning message to the top of schema files copied into the
from_gdk_packages
directory. - Added an
ISnapshottable<T>
interface to all generated components. This allows you to convert a component to a snapshot. - Added an
EntityId
property on the Readers/Writers to access theEntityId
of the underlying SpatialOS entity. - Added a
HasEntity
method to theWorkerSystem
. This allows you to check if an entity is checked out on your worker. - Added operators and conversion methods to
Coordinates
,Vector3d
, andVector3f
in code generation.- This supercedes the
StandardLibraryUtils
feature module which was removed as a consequence.
- This supercedes the
- Improved the method of calculating load and FPS.
- Updated test project Unity version to
2018.2.14f
. - Upgraded the Worker SDK snapshot version. This entails the following changes:
EntityId
is now in theImprobable.Gdk.Core
namespace. (PreviouslyImprobable.Worker
).Dispatcher
is now in theImprobable.Gdk.Core
namespace. (PreviouslyImprobable.Worker
).- The
Improbable.Worker.Core
namespace is nowImprobable.Worker.CInterop
.
- Fixed a bug where schema components with a field named
value
would generate invalid code.
- Removed the
StandardLibraryUtils
feature module as it was superceded by inserting the methods during code generation.
- Added the ability to acknowledge
AuthorityLossImminent
messages. - Added an
Open Inspector
button to theSpatialOS
menu in the Unity Editor. - Added support for local mobile development.
- Added a changelog.
- Added field level dirty markers in components. This allows for partial automatic component updates to be sent.
- Added full support for
EntityQuery
world commands.- Added
Improbable.Gdk.Core.EntityQuerySnapshot
to hold the result of a single entity from a snapshot query. - Added
Improbable.Gdk.Core.ISpatialComponentSnapshot
to differentiate between a snapshot of component state and component data.
- Added
- Changed the allocation type used internally for Unity ECS chunk iteration from
Temp
toTempJob
- Running a build in the Editor no longer automatically selects all scenes in the Unity build configuration
Improbable.Gdk.Core.Snapshot.AddEntity
now returns theEntityId
assigned in the snapshot.- Changed the
WorkerConnector
to be more generic and have an explicitStandaloneWorkerConnector
for any workers running on OSX/Linux/Windows. - Updated the default Unity version to
2018.2.14f1
.
- Fixed a bug where deserialising multiple events in a single component update only returned N copies of the last event received, where N is the number of events in the update.
- Fixed a broken link to the setup guide in an error message.
- Better error messages when missing build support for a target platform.
- Better error messages for common problems when downloading the Worker SDK.
- Position updates are now sent after all other updates.
- Simplified the heartbeating system in the
PlayerLifecycle
feature module. - Updated the
README
and "Get Started" guide.
- The
GameLogic
worker is run in headless mode. - The
Clean All Workers
menu item now works.
The initial alpha release of the SpatialOS GDK for Unity.