Cloud Code C# module reference files

Use Cloud Code C# module reference files to manage your modules from the Unity Editor. These files reference your C# solution used for your Cloud Code C# modules. You can deploy these reference files to the Unity Cloud Dashboard using the Deployment package.

Prerequisites

To use Cloud Code C#, you must install the Deployment package (com.unity.services.deployment).

Create Cloud Code C# module reference files

To create a Cloud Code C# module reference file:

  1. In the Unity Editor, right-click the Project window and select Create > Services > Cloud Code C# Module Reference.

File format

Cloud Code C# module reference files must respect the JSON format.

Example

{
  "modulePath": "../new_module_reference/new_module_reference.sln"
}

For more options on authoring and how to generate your solutions, refer to Write Cloud Code C# modules in Editor.

Deploy files

When you've created your Cloud Code C# module reference files, you can deploy them to your chosen environment.

To deploy a file:

  1. In the Unity Editor, select Services > Deployment. For Unity Versions earlier than 2022, select Window > Deployment. The Deployment window displays your local Cloud Code C# module reference files.
  2. Select your chosen Cloud Code C# module reference files and select Deploy Selected.

For more information on working with the Deployment window, refer to Deployment package.