기술 자료

​
​

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)

Use Custom Scripts

Use Custom Scripts to further extend and customize your pipeline by running your own code.
읽는 시간 2분
최근 업데이트: 7달 전

중요
You're solely responsible for any custom code you enter, and Unity is not liable for any errors, malfunctions, or damages resulting from the use of your custom code.
You can provide code tailored to your needs. The following apps support Custom Scripts:
  • Asset Transformer
  • Linux Shell
  • Python
  • Blender
You can use Custom Scripts in two ways:
  • Enter custom code in the built-in editor, and execute it with command-line arguments (optional).
  • Fetch a script from a script library and execute it with command-line arguments (optional).

Prerequisites

You can access Custom Scripts when you create or edit a pipeline.

Enter custom script code

To enter your custom code:
  1. Sign in to your Unity Dashboard account.
  2. In the side navigation bar, select Pipeline Automation > Pipelines. You can create or edit a pipeline.
  3. In the pipeline builder, add a step. The Select an action from app dialog opens.
  4. Select the Python app.
  5. Select the Run Custom Script action.
  6. Select Add Action. In the Step Parameters tab, the Custom Scripts section appears in the Inputs section.
  7. Enter your code in the built-in editor or select Browse Files to upload a script file from your local drive. The script code from your file appears in the built-in editor.
  8. Enter Command Line Arguments to pass as pipeline inputs.
  9. Select Save.
Your custom script is now embedded in the pipeline. When you run the pipeline, it runs your script file and prompts for input if you enable Command Line Arguments.

Fetch and run a custom script

To run a script in this way, ensure the script exists in the job’s storage. First download it from a source such as Unity Asset Manager or Unity Version Control. The output of an action that downloads files includes parameters that locate the downloaded script path. You must provide this path to actions that run script files.
To fetch and run a custom script file:
  1. Sign in to your Unity Dashboard account.
  2. In the side navigation bar, select Pipeline Automation > Pipelines. You can create or edit a pipeline.
  3. In the pipeline builder, add a step. The Select an action from app dialog opens.
  4. Select the Python app.
  5. Select the Run Custom Script File action.
  6. Select Add Action. In the Step Parameters tab, the Custom Scripts section appears in the Inputs section.
  7. In the Script Path field, select Download file – Download Directory and enter the script file name, for example,
    /scriptexample.py
    .
  8. Enter Command Line Arguments to allow the script to receive parameters generated by the pipeline.
  9. Select Save.
Your custom script is now embedded in the pipeline. When you run the pipeline, it runs your script file and prompts for input if you enable Command Line Arguments.

Copyright © 2026 Unity Technologies
법률 정보개인정보 처리방침쿠키Documentation Terms of Use개인 정보 판매 또는 공유 금지개인정보 보호 선택(쿠키 설정)

'Unity', Unity 로고 및 기타 Unity 상표는 미국 및 기타 지역 내 Unity Technologies 또는 그 계열사의 상표 또는 등록상표입니다(자세한 내용은 여기에서 확인하세요). 기타 명칭 또는 브랜드는 해당 소유자의 상표입니다.

일부 페이지는 편의를 위해 기계 번역되었으며 부정확한 내용이 있을 수 있습니다. 정보가 상충되는 경우, 영어 버전을 우선으로 참조하세요.

  • 보고 있는 페이지
    • Prerequisites

    • Enter custom script code

    • Fetch and run a custom script


이 페이지의 문제 보고