文档

​
​

Development

User Acquisition

Monetization

工业

Unity Cloud

Get Started

Asset Manager SDKs and services

Open Unity Dashboard

Unity Cloud

此页面不支持所选语言。
​
​
Unity Dashboard
  • Accounts
  • Organizations
  • Projects
  • Products
  • Billing
Developer Data
  • Introduction to the Developer Data Framework
  • Get started
  • View Diagnostics for your project
  • Privacy and consent
Unity Asset Manager
  • What's new
  • Asset Manager web
  • Asset Store
  • Manage Assets in the Editor
  • Unity Version Control
  • Developer documentation
Unity Pipeline Automation
  • About
  • Get started
  • Pipelines
    • Create a pipeline
    • Run a pipeline
    • Edit a pipeline
    • Delete a pipeline
    • Pipeline parameters
    • Steps
    • Custom Scripts
      • Use Custom Scripts
      • System parameters
      • Reference parameters
      • Coding patterns
  • Automations
  • Monitor jobs
  1. Unity Cloud Documentation
  2. Unity Pipeline Automation (beta)
  3. Custom Scripts (beta)

Reference parameters

Learn how to reference pipeline and output parameters.
阅读时间1 分钟
最后更新于 10 个月前

Unity Pipeline Automation has a syntax template to reference various types of parameters used within a pipeline. These parameters are accessible to your custom code either through command line arguments or directly through the script input.

Parameter Name

Syntax

Syntax Example

Supported Type

Description

Pipeline parameters
{{inputParameters.<parameterName>}}
{{inputParameters.message}}
Boolean, Float, Integer, Script (string), Text (string), Url (string), UUID (string)Reference pipeline parameters in scripts.
{{inputs.parameters}}
[{'name': 'message', 'default': 'Hello world', 'value': 'Hello world', 'description': 'A custom message to display in the log'}]
Boolean, Float, Integer, Script (string), Text (string), Url (string), UUID (string)Reference all pipeline parameters and their metadata. If there are no pipeline parameters, this evaluates to null.
Step input parametersN/AN/AN/AA pipeline cannot reference step input parameters.
Step output parameters
{{steps.<stepId>.outputParameters.<parameterName>}}
{{steps.create-asset-323da5cc.outputParameters.assetId}}
Boolean, Float, Integer, StringReference output parameters from previously executed steps.
Secrets parameter
{{secrets.<secretName>}}
{{secrets.token}}
StringReference pipeline secrets, which are sensitive information such as an API token. This evaluates to the string value of the secret stored in Unity’s Secret Manager service.
警告
Don't log the values of secrets as this can create security risks.

Copyright © 2026 Unity Technologies
法律信息隐私政策CookiesDocumentation Terms of Use请勿出售或分享我的个人信息您的隐私选择(Cookie 设置)

“Unity”、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属公司在美国和其他地方的商标或注册商标(此处查看更多信息)。其他名称或品牌是其各自所有者的商标。

为方便起见,一些页面是机器翻译的,可能包含不准确的内容。如有信息不一致的情况,以英文版本为准。


    报告此页面的问题