Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
55 lines (55 loc) · 6.1 KB
/
Copy pathpackage.json
File metadata and controls
55 lines (55 loc) · 6.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"name": "com.unity.services.cloudcode",
"displayName": "Cloud Code",
"version": "3.1.0",
"unity": "6000.7",
"unityRelease": "0b5",
"description": "Run your game logic in the cloud as serverless functions and interact with other backend services.\n\nThis package allows you to call out to Cloud Code from within your project as a secure player.\n\nCloud Code can be used to: \n-Change game logic for all players without re-distributing your game \n-Grant timed rewards \n-Create randomized values",
"dependencies": {
"com.unity.services.authentication": "3.9.0",
"com.unity.services.core": "1.19.0",
"com.unity.modules.unitywebrequest": "1.0.0",
"com.unity.nuget.newtonsoft-json": "3.2.2",
"com.unity.services.deployment": "1.8.0",
"com.unity.services.wire": "1.6.0"
},
"_upm": {
"gameService": {
"genericDashboardUrl": "https://dashboard.unity3d.com/cloud-code",
"projectDashboardUrl": "https://dashboard.unity3d.com/organizations/{0}/projects/{1}/cloud-code/about",
"projectDashboardUrlType": "OrganizationKeyAndProjectGuid",
"groupId": "game-backend"
},
"supportedPlatforms": [
"Android",
"iOS",
"Linux",
"Mac",
"PC",
"Windows 8 Universal",
"Windows 10 Universal"
],
"changelog": "### Added\n- Added Unity services CLI commands for Cloud Code, available when com.unity.pipeline is installed.\n- The local server popup has a Show Logs Folder item that opens the folder the local server writes its logs to, and a Show Modules Folder item that opens the folder it loads deployed modules from.\n- Clients can now receive the messages a module sends with `SendScopeMessageAsync` by calling `ICloudCodeService.SubscribeToScopeMessagesAsync`. The subscription token comes from a module function in that scope that returns `GenerateScopeTokenAsync`'s reply, so that function's access rules decide who can subscribe. Subscribers to the same scope share one channel. If the token function fails, the subscription throws that call's `CloudCodeException`, such as `Forbidden`.\n- `ITriggersEventClient` in `Unity.Services.CloudCode.Apis` (Apis 0.0.29), which a module function uses to publish a custom event that the Triggers service can respond to.\n\n### Changed\n- New Cloud Code modules' assembly definitions now require `UNITY_6000_7_OR_NEWER` instead of `UNITY_6000_5_OR_NEWER`, matching the package's minimum Unity version.\n- The local Cloud Code server now writes its logs to the project's `Logs/CloudCodeLocalServer` folder instead of a machine-wide `UnityCloudCode/Logs` folder, and keeps the last five runs. If that folder can't be written, the server starts without a log file and logs a warning. Logs from earlier versions stay in the old folder.\n- The local Cloud Code server's deployed modules and local state are now stored in the project's `Library/CloudCodeLocalServer` folder instead of a machine-wide `UnityCloudCode/Modules` folder in your local application data. After updating, the first start of the local server redeploys every module and starts with empty local state, and a server that was running during the update is stopped and must be started again. Deleting the project's `Library` folder also clears the local state. The old `UnityCloudCode/Modules` folders stay on disk, and you can delete them.\n- Source generator warnings about a type or base class declared in another assembly, such as a shared assembly, now appear in the Unity Console and in Rider's problem list, pointing at the class that uses it. They were previously only written to `Editor.log`.\n\n### **Breaking Changes**:\n- `ModuleHostWarmup.ResetDefault` is no longer public.\n- `ICloudCodeService` has two new `SubscribeToScopeMessagesAsync` members. Classes that implement the interface must add them.\n\n### Fixed\n- Cloud Code modules no longer drop a referenced assembly definition whose file name differs from its `name` when they are packaged and auto-deployed. A reference by name must now match the assembly definition's `name` exactly, including case.\n- Local auto-deploy now warns when a module references an assembly definition it can't read, instead of silently skipping the module.\n- Data types generated for Cloud Code module clients now keep their properties in IL2CPP players built with Medium or High managed stripping, instead of arriving with empty fields.\n- Starting the local Cloud Code server no longer fails with `Connection refused` when the server takes more than a few seconds to start listening, such as on a slow or busy machine. The Editor now waits up to 30 seconds while the server process is running.\n- A script reload while the local Cloud Code server is starting no longer stops the server when it hasn't started listening yet.\n- The local Cloud Code server's state is now scoped to its project and Editor. Two Editors on the same machine no longer read or overwrite each other's server status, PID, or log position, stop or kill each other's server, route Play Mode to another project's server, or share deployed module zips.\n- Module names entered when creating a Cloud Code module, in the creation window or with the `create_module` CLI command, are now limited to letters, digits and underscores, up to 50 characters, and must start with a letter. The CLI command rejects other names instead of changing them. Names such as `My.Module` or `My-Module` previously fai"
},
"samples": [
{
"displayName": "Cloud Code Scripts Deployment",
"description": "This is a simple sample to deploy and call a Cloud Code Script.",
"path": "Samples~/CloudCodeScriptsDeployment"
},
{
"displayName": "Cloud Code Modules Deployment",
"description": "This is a simple sample to deploy and call a Cloud Code Module.",
"path": "Samples~/CloudCodeModulesDeployment"
}
],
"upmCi": {
"footprint": "f6e407669fe5f81e9b9a38d18d8c714b311b78ef"
},
"documentationUrl": "https://docs.unity3d.com/Packages/[email protected]/manual/index.html",
"repository": {
"url": "https://github.cds.internal.unity3d.com/unity/operate-services-sdk.git",
"type": "git",
"revision": "2477d805ddfb77f6edbb43c88a58f0bffd912bd5"
}
}