Dev Asset Collection

All Things That You Need to Build A Video Game
Menu
  • 2D
    • Characters
    • Environments
    • Fonts
    • GUI
    • Textures & Materials
  • 3D
    • Animations
    • Characters
    • Environments
    • GUI
    • Props
    • Vegetation
    • Vehicles
  • Add-Ons
    • Machine Learning
    • Services
  • Audio
    • Ambient
    • Music
    • Sound FX
  • Essentials
    • Tutorial Projects
  • Templates
    • Packs
    • Systems
    • Tutorials
  • Tools
    • AI
    • Animation
    • Audio
    • Camera
    • Game Toolkits
    • GUI
    • Input Management
    • Integration
    • Level Design
    • Localization
    • Modeling
    • Network
    • Painting
    • Particles & Effects
    • Physics
    • Sprite Management
    • Terrain
    • Utilities
    • Version Control
    • Video
    • Visual Scripting
  • VFX
    • Particles
    • Shaders
Home
Tools
AdinPlay Unity Plugin

AdinPlay Unity Plugin

Tsunami 25 February, 2021

Detail this plugin from Adinplay: Click Here

AdinPlay v1.0

Download Now

“Sharing is caring”

With the AdinPlay Unity plugin you can display AdinPlay banner- and video advertisements in your Unity
projects. The plugin can be easily imported, and advertisements can be displayed with UI buttons or
programmatically.
Please be aware that, at this time AdinPlay advertisement do not work in Unity FullScreen Mode.

Import the AdinPlay Unity package
Import the package from Assets/Import Package/Custom
Package…
Unity will analyze the package and display everything that will
be imported. Keep everything selected and click on Import.
After the import is completed, a new folder named Adinplay is
added in the Assets folder.
Setup and configure
Be sure you’re in the main scene of your project before
continuing to the next step.
Go to Window/Adinplay to open the AdinPlay Editor Tools.
Click on Setup and configure in the tools window. This will
configure the AdinPlay plugin in your project and add the required resources to your scene.
After configuration is completed the tools window will update. The
Tag URL input field will appear.
Past your own tag url in the field. This tag will be provided by AdinPlay
and have the following structure:
Api.adinplay.com/libs/aiptag/pub/xxx/xxxxx/tag.min.js

Showing video advertisements
Video advertisements are some of the most performant advertisements in monetization techniques. If
you already configured AdinPlay in your Unity project you can display video advertisements using a Unity
UI Button or programmatically.
Using a UI Button
Create a UI Button with GameObject/UI/Button. Select the button in the scene and open the inspector if
it was not open yet. Go Button (script) and add a On Click () action.
Select the AdinPlay object and click on No function/Adinplay/StartPreRoll()
Programmatically
You can show a video advertisement with a single line of code in C#.
Adinplay.instance.StartPreRoll();
Always be sure to call the AdinPlay instance after AdinPlay has loaded. This can be done by pointing
Adinplay.OnLoad to a function like this
public class AdinplayExampleBehaviour : MonoBehaviour {
void Awake()
{
Adinplay.OnLoad += AdinplayOnLoad;
Adinplay.OnVideoAdCompleted += AdinplayOnComplete;
}
void AdinplayOnLoad()
{
// AdinPlay is ready to display advertisements
}
void AdinplayOnComplete()
{
// Advertisement video is completed
}
}
Showing banner advertisements
To setup banner advertisements, go to the AdinPlay Editor Tools and click on Create a new Banner Ad.
This will create a new prefab Banner Ad in your Scene. Go to the inspector and add the required AdinPlay
tag to the AdinPlay Banner Ad Behaviour.
By default, the prefab is 100×100 pixels, but can be altered to the required dimensions.
Like video advertisements, banners can be displayed using a Unity UI Button or programmatically.

 
 

Prev Article
Next Article

Related Articles

Easy Variables – Dev Community
Tsunami 9 October, 2020

Easy Variables – Dev Community

Simple Fur and Wind Shader – Dev Community
Tsunami 10 January, 2023

Simple Fur and Wind Shader – Dev Community

Simple Google Cloud Translation – Dev Community
Tsunami 1 November, 2020

Simple Google Cloud Translation – Dev Community

Skycube RT: Real-time IBL HDR Cubemap Rendering Tool & Shader Library – Dev Community
Tsunami 30 August, 2020

Skycube RT: Real-time IBL HDR Cubemap Rendering Tool & Shader Library – Dev Community

Leave a Reply Cancel Reply

Recent Posts

  • Super Realistic ARPG FX Bundle – 1000+ Unique VFX! – Free Download
  • Frank Slash Pack – 11 Assets – Free Download
  • Pixel Shooter 3D | Jam Template + Editor – Free Download
  • Animation Composer System – ACS – Free Download
  • Character Effects – Free Download

Dev Asset Collection

All Things That You Need to Build A Video Game
Copyright © 2026 Dev Asset Collection
Privacy Policy | Disclaimer | DMCA