UnityEditor.Advertisements

本篇文章出處自 https://docs.unity3d.com/2022.3/Documentation/ScriptReference/Advertisements.AdvertisementSettings.html
軟體版本與本翻譯文件可能會有落差,本翻譯文件僅供參考。

AdvertisementSettings

class in UnityEditor.AdvertisementsLeave feedback
位於 UnityEditor.Advertisements 的類別

Description(描述)

Editor API for the Unity Services editor feature. Normally UnityAds is enabled from the Services window, but if writing your own editor extension, this API can be used.
這是一個給 Unity Services 編輯器功能使用的 Editor API。 一般情況下,Unity Ads 會從 Services 視窗 中啟用; 但如果你正在撰寫自己的 Editor 擴充工具, 就可以使用這個 API。

Static Properties(靜態屬性)

Property Description(描述)
enabled 全域布林值,用於啟用或停用廣告功能。
initializeOnStartup 控制廣告系統是否在啟動時立即初始化。
testMode 控制是否使用「測試廣告」而非正式上線的廣告。

Static Methods(靜態方法)

Method Description(描述)
GetGameId 取得針對某個執行平台所設定的遊戲識別碼。
GetPlatformGameId 取得針對某個執行平台所設定的遊戲識別碼。
SetGameId 設定指定平台所使用的遊戲識別碼。
SetPlatformGameId 設定指定平台所使用的遊戲識別碼。

留言

這個網誌中的熱門文章