Access Control Configuration
Create Asset Control configurations
To create an Asset Control configuration, right-click on Project Window and select Create > Services > Access Control Configuration.
Configuration Format
Configurations must conform to the JSON schema for it to parse properly.
Example
The following example of configuration contains one statement that doesn't allow players to execute any Cloud Code module:
{
"$schema": "https://ugs-config-schemas.unity3d.com/v1/project-access-policy.schema.json",
"Statements": [
{
"Sid": "deny-cloud-code-access",
"Action": [
"*"
],
"Effect": "Deny",
"Principal": "Player",
"Resource": "urn:ugs:cloud-code:/v1/projects/*/modules/*",
"Version": "1.0.0"
}
]
}
File Deployment
After you create the configurations, you can deploy them to the environment.
To deploy a file, go to Window > Deployment (2021.3-) or Services > Deployment (2022+).
The Deployment window opens and displays all of your local Access Control configurations and enables you to deploy them.
For more information on the expected deployment window workflow, refer to "com.unity.services.deployment".
Deleting Statement ID(s)
In order to delete Statement ID(s) from the cloud service, you can make use of the Delete
command.
To access this command, select one or many Access Control configurations in the Deployment window and right click to bring up the context menu.
Clicking on the Delete
command will bring up a prompt informing you of the Statement ID(s) you are about to delete.
Clicking OK
on this prompt will delete the statements from the cloud service, clicking Cancel
will cancel the operation.