com.unity.services.cloudcode 3.1.0-exp.1

Experimental

com.unity.services.cloudcode

Source docs
Notes: processedReleased October 3, 2026

Browse versions

PreviousNext

Download Options

Direct package downloads captured from Unity's package registry.

Unity Compatibility

Minimum Unity: 6000.3

Features

  • Cloud Behaviour data types now capture public properties with a public getter and setter, in addition to fields. Readable but unassignable properties report CCSG131; unreadable ones (write-only, or a non-public getter) are excluded silently.
  • Add creation flow for Cloud Behaviour Scripts through the Unity Editor
  • Cloud Behaviours supports `[CloudCodeSerializeProperty]` and `[CloudCodeIgnoreProperty]` on fields to control state persistence.
  • Cloud Behaviours supports the `[CloudCodeAccess(Access)]` attribute to restrict who can access which endpoints, as in Stateful Cloud Code.
  • Cloud Behaviours supports `struct` data types for endpoint parameters and returns, synchronized fields, and event payloads.
  • Cloud Behaviours: new `[SyncView("wireName")]` attribute for per-viewer synchronized projections — a `TWire Method(string playerId)` whose value is computed per recipient, so each player receives their own view of the shared state.
  • Cloud Behaviours supports timers and cross-scope requests via the generated `I{Behaviour}` interface. Once injected, in the calling function, it can be used with `ScheduleAsync()` to schedule a deferred execution of that function, or `ForScope()` to invoke a function in a different scope than the current one.
  • Added `ModuleHostWarmup`, which warms the project's module host at sign-in so the first module call is not delayed by provisioning. Generated Cloud Behaviour clients arm it at load and await it before hydrating; a failed warm-up raises `Fatal` with the new `InvokerUnavailable` reason.
  • Added `CloudBehaviourErrorReason.MessageError`: a generated client raises `Error` with it when a synchronization or push-event message cannot be read or applied. The message is dropped and `MessageReceived` is not raised for it.
  • Add a Cloud Code observability logs window (`Services > CloudCode > Observability Logs`) to query the logs your scripts and modules emit
  • Cloud Code data types authored natively in-editor now capture public properties with a public getter and setter, in addition to fields. Readable but unassignable properties report CCSG216; unreadable ones (write-only, or a non-public getter) are excluded silently.
  • A module whose source changed is now redeployed onto the running local Cloud Code server automatically, instead of having to be redeployed by hand, so picking up a code change no longer requires stopping and starting the server. Each redeploy names the modules the server reloaded in the Console. Module references are redeployed when the Editor regains focus, including while in play mode. Cloud Code Modules are redeployed after Unity recompiles them, outside play mode only; changing one while playing logs which modules need play mode to be re-entered.
  • Cloud Code push-message subscriptions now support multiple subscribers on the same channel, each with its own callbacks and an independent unsubscribe.
  • Entering Play mode without the local Cloud Code server running now logs a warning when the remote environment is stale relative to local module source.
  • The Cloud Code Module Reference (.ccmr) inspector now shows a last successful deployment summary, matching the Cloud Code Module (.ccmu) inspector. The summary reads the editor session's per-user deployment record, so it survives domain reloads and follows the active project and environment.
  • Module References (.ccmr) now show "Modified locally, deploy to update" in the Deployment window when their external solution changed since the last recorded deploy, instead of a status derived from the .ccmr asset file's own timestamp.
  • Editor analytics now cover the Cloud Code authoring flows: creating, deploying and publishing JS scripts; creating and deploying module references (`.ccmr`) and modules (`.ccmu`); generating solutions and bindings; and the local server lifecycle. Automatic local redeploys are not reported. Collection follows the Editor's own analytics setting, and no script or module source is sent.

Improvements

  • New Cloud Behaviour scripts are now created with `[StateScope(Scope.Player)]` instead of \`[Sta