Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Support for Unity 5 soon?

Discussion in 'Unity Ads & User Acquisition' started by bjornrun, Nov 27, 2014.

  1. bjornrun

    bjornrun

    Joined:
    Oct 29, 2013
    Posts:
    88
    The title says it all. Beta access for Unity Ads?
     
  2. unity-nikkolai

    unity-nikkolai

    Unity Technologies

    Joined:
    Sep 18, 2014
    Posts:
    540
    There are currently a few issues with Unity Ads in Unity 5, but it does work after making the following changes:

    DeviceInfoIos.cs:
    Change return iPhone.advertisingIdentifier; to return iOS.Device.advertisingIdentifier;

    UnityAdsPostprocessor.cs (Available on release 1.0.3):
    Change BuildTarget.iPhone to BuildTarget.iOS

    UnityAdsUnityWrapper.mm:
    Change void UnityPause(bool pause); to void UnityPause(int pause);
    Change UnityPause(true) to UnityPause(1)
    Change UnityPause(false) to UnityPause(0)
     
    bjornrun likes this.