Documentation

​
​

Development

User Acquisition

Monetization

Industry

Services

Collaboration

LiveOps

Multiplayer

Services

​
​
Overview
  • Overview
  • Get started
  • Pricing and billing
  • Concepts
  • Release notes
Secret Manager
  • Overview
  • Concepts
  • Tutorials
    • Grant roles
    • Store secrets
    • Retrieve secrets
      • Cloud Code
        • Modules
        • Scripts
  • Reference
Services
  • Collaboration
  • LiveOps
  • Multiplayer
Reference
  • Overview
Solutions
  • Overview
  • Sample projects
  1. Overview
  2. Secret Manager
  3. Tutorials
  4. Retrieve secrets

Retrieve secrets in Cloud Code

Use Secret Manager with Cloud Code scripts and modules to securely access sensitive information.
Read time 1 minute
Last updated 7 months ago

Both Cloud Code modules and scripts can access secrets stored in Secret Manager. The following sections describe how to retrieve secrets in Cloud Code modules and scripts. Use Secret Manager to store sensitive information, such as API keys, service account credentials, and other sensitive data.

Section

Description

Retrieve secrets in Cloud Code modulesRetrieve secrets stored in Secret Manager from a Cloud Code module.
Retrieve secrets in Cloud Code scriptsRetrieve secrets stored in Secret Manager from a Cloud Code script.

Prerequisites

You should be familiar with setting up Cloud Code resources. Refer to Getting started with modules or Getting started with scripts for more information.

Copyright © 2026 Unity Technologies
LegalPrivacy PolicyCookiesDocumentation Terms of UseDo Not Sell or Share My Personal InformationYour Privacy Choices (Cookie Settings)

"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S and elsewhere (more info here). Other names or brands are trademarks of their respective owners.

Some pages are machine-translated for convenience, and may contain inaccuracies. In the event of conflicting information, the English version is authoritative.

  • On this page
    • Prerequisites


Report a problem with this page