- Home /
iAd without plugins for iOS?
So how would I go about doing this, I found this on the docs:
private var banner : ADBannerView = null;
function ShowBanner() { while (!banner.loaded && banner.error == null) yield;
if (banner.error == null)
banner.Show();
else banner = null;
} function OnGUI() { GUI.enabled = (banner == null ? true : false);
if (GUILayout.Button("Show Banner")) {
banner = new ADBannerView();
banner.autoSize = true;
banner.autoPosition = ADPosition.Bottom;
StartCoroutine(ShowBanner());
}
}
but I'm not sure if it actually works. It says showbanner on the game, but it doesn't look like a normal iAD banner. So is it that simple? Is it working, and is it actually that size? Thanks,
Comment