文档

​
​

Development

User Acquisition

Monetization

工业

Triggers

Triggers Admin API

Scheduler Admin API

Open Unity Dashboard

Triggers

此页面不支持所选语言。
LiveOps
​
​
Get started
  • Overview
  • Get started
  • Set up triggers example workflow
  • Authentication
Set up events
  • Understand and manage events
  • Schedule events
Define triggers
  • Define triggers
Configure actions
  • Use Cloud Code
    • Set up Cloud Code
    • Use Access Control
    • Cost
  • Use webhooks
Manage and monitor
  • Use the dead letter queue (DLQ)
  • Limits
  • Failure handling
Examples and reference
  • Use case samples
  1. Triggers

Use Cloud Code

Understand how you can use Cloud Code modules or scripts with the Triggers service.
阅读时间1 分钟
最后更新于 5 个月前

You can set up a trigger to run a Cloud Code script or module to execute your custom server-side logic.
Cloud Code lets you write and run server-side code without managing infrastructure. For more information, refer to Cloud Code.
Triggers enable you to run Cloud Code automatically in response to server events, without requiring client requests. For example, you can use this pattern for the following tasks:
  • Automate rewards: Give top players seasonal bonuses without a request from the client.
  • Send notifications: Wish players happy new year, congratulate level ups, or alert them of competitive updates.
  • Initialize data: Seed new players with default game configuration on sign-up.
  • Maintain server state: Sync player achievements across services, enforce game rules, or moderate content
  • Time-based events: Execute actions at specific moments using the Scheduler service
Set up Cloud Code
Set up Cloud Code scripts or modules to use with the Triggers service.
Use Access Control
Control access to Unity Gaming Services by creating rules to restrict service APIs.
Cost
Understand that Triggers currently do not incur additional costs beyond Cloud Code invocations.

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

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

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


    报告此页面的问题