• Docs
  • Releases
  • API Reference
  • Login
  • Languages iconEnglish
    • 日本語

›Admix Plugin

Getting Started

  • Admix Quickstart
  • How It Works
  • Register a Developer Account
  • Download the Plugin
  • Install the Unity Plugin
  • Updating Plugin Version

Admix Plugin

  • Adding Placements
  • Banner Placements
  • Video Placements
  • Placement Settings
  • Adding Shaders
  • Understanding Gaze Tracking
  • Plugin Settings
  • Projects management
  • Dynamically Generated Content
  • About AdmixLocalConfig file
  • Consent Management Platform
  • PlayerInfo popup
  • Graphics API requirements
  • Admix Obfuscation rules

Developer Platform

  • My Apps
  • OFF Mode
  • SANDBOX Mode
  • Going LIVE
  • Placements setup
  • App versions
  • Publish page
  • Reporting
  • Forecast page
  • User Profile
  • App-ads.txt

Optimization

  • Choosing Your Ad Format
  • Starting to Generate Revenue
  • Increase My Revenue
  • Optimizing the Experience

Data

  • Admix and User Privacy

Tutorials

  • Sandbox mode on Android

Dynamically Generated Content

This tutorial shows you how Admix banners can be used in a dynamically generated environment that is built inside a single scene, for example when using prefab-levels.

Starting with the Admix SDK 2.1, prefabs are supported on all levels of implementation. It's useful in case you're generating a game environment during app runtime and you want to have Admix banners be a part of that generated content. Endless runners and Rogue-lites are just two examples of games where this would be desirable.

Plugin version 2.1 is in beta and available on demand. Please contact support@admix.in if you'd like to try this version.

Step-by-Step

  1. Let's prepare a prefab with Admix Dynamic Placements which we want to instantiate somewhere in our game during app runtime. Prefab with banners

Please note, all data regarding dynamic placements will be tied-in with an automatically generated scene. This scene will be created on the Admix Developer Platform only and makes analysing performance of dynamic ads much easier. The name of this automatically created scene is: 'AdmixDynamicPlacements' Dynamic scene

  1. Now let's implement a simple script that will instantiate a prefab with Admix Dynamic Banners once the main camera reaches the end of the road. Where to instantiate
C#
public GameObject city_prefab_with_Admix_Banners;
bool trigger = false;

void OnTriggerEnter(Collider col)
{
if (col.gameObject.name == "city" && trigger == false)
{
Instantiate(city_prefab_with_Admix_Banners);
trigger = true;
}
}

Here it is in action:

← Projects managementAbout AdmixLocalConfig file →
  • Step-by-Step
  • Here it is in action:
Documentation
TutorialsReleasesAPI Reference
Admix
Admix HomepageLogin
Copyright © 2022 Admix