Unity Visual Scripting

Enable Unity Visual Scripting

From Settings Window check Unity Visual Scripting and press the Save button.

Supported UVS Nodes

  • HideBanner

  • HideMRec

  • Initialize

  • IsAppOpenAvailable

  • IsInterstitialAvailable

  • IsRewardedInterstitialAvailable

  • IsRewardedVideoAvailable

  • RemoveAds

  • SetConsentToNo

  • SetConsentToYes

  • ShowAppOpen

  • ShowBanner

  • ShowBuiltInConsentPopup

  • ShowInterstitial

  • ShowMRec

  • ShowRewardedInterstitial

  • ShowRewardedVideo

  • UserConsentWasSet

The above UVS nodes' behavior is equivalent to corresponding methods from CompleteAPI.

The above UVS nodes are located inside MobileAdsUVS

Supported UVS Events

  • OnInitialized

  • OnInterstitialClosed

  • OnAppOpenClosed

  • OnRewardedVideoClosed

  • OnRewardedInterstitialClosed

  • OnConsentPopupClosed

The above UVS events are located inside Events -> Gley -> Mobile Ads

Examples

Initialize

Call initialize at the beginning of your app. The OnInitialized callback is not mandatory, but all other calls need to be made after this callback is received.

Show Banner

Show Interstitial

The OnInterstitialClosed callback is not mandatory, use it only if you need to do something specific after the interstitial is closed.

Show Rewarded Video

Show Rewarded Interstitial

Show App Open

The OnAppOpenClosed callback is not mandatory only if you need to do something special after the ad closes.

The consent popup is automatically displayed at the start. This method is useful if you want your user to have the ability to change his options later from settings.

Last updated