Search Unity

OnAudioFilterRead and Unity Ads hate each other

Discussion in 'Android' started by Setsuki, Mar 11, 2016.

  1. Setsuki

    Setsuki

    Joined:
    Aug 21, 2012
    Posts:
    31
    Hello everyone,
    after several months working with Unity Support on a crash my game is encountering, I finally found the issue.

    Simply using OnAudioFilterRead anywhere in the game, even in a inactive Game Object, and using UnityAds makes the game crash after 2-7 ads. The only workaround I found is development build.

    I'm seriously thinking of releasing the game in development build.

    Has anybody else encountered this glitch ?

    (Joined two very simple scripts. Just enable ads and compile scene.unity (be careful, the sound is bad) and see the beauty of the crash.)
     

    Attached Files: