学习
引擎类
CommerceService
无法创建
服务

*此内容使用人工智能(Beta)翻译,可能包含错误。若要查看英文页面,请点按 此处



API 参考
方法
GetCommerceProductInfoAsync
暂停
功能: Monetization
CommerceService:GetCommerceProductInfoAsync(commerceProductId:string):Dictionary
参数
commerceProductId:string

PromptCommerceProductPurchase
功能: Monetization
CommerceService:PromptCommerceProductPurchase(
user:Player, commerceProductId:string
):()
参数
user:Player
commerceProductId:string
返回
()

PromptRealWorldCommerceBrowser
功能: Monetization
CommerceService:PromptRealWorldCommerceBrowser(
player:Player, url:string
):()
参数
player:Player
url:string
返回
()

UserEligibleForRealWorldCommerceAsync
暂停
功能: Monetization
CommerceService:UserEligibleForRealWorldCommerceAsync():boolean
返回

活动
PromptCommerceProductPurchaseFinished
功能: Monetization
CommerceService.PromptCommerceProductPurchaseFinished(
user:Player, productId:string
参数
user:Player
productId:string

©2026 Roblox Corporation、Roblox、Roblox 标志及 Powering Imagination 是我们在美国及其他国家或地区的注册与未注册商标。