Randomly Appearing Popups In Unity3D -


how can make image randomly appear while in-game in unity3d ? serve popup advertisements game. want have ads without using admobs or other plugins.

depending on how plan display images. write script randomly enable gui image, have gui image become disables after specified time on or button click (like "x" symbol or close button).

my recommendation mix of following:

  1. create ui image gameobject. use main advertisement gameobject.
  2. create script set gameobject active/inactive randomly throughout game. place script on object in hierarchy exist throughout game.
  3. create script advertisement handler. attach ui gameobject. in can create sort of structure hold different ads or plan populate ads. can customize way ads displayed. random? happen sequentially? there different types of ads?
  4. create logic disable gameobject based on timer or way of close button.

if around coding , have trouble, please feel free ask coding. also, check out unity forums questions specific unity.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -