Unity SDK 6.x Upgrade

Requirements

Please note that Chartboost supports Android 2.3+ and iOS 6.0+, so make sure to set the minimum OS versions of your Unity project accordingly.

Key differences

Initialization is handled by the SDK

To simplify the integration and decrease possible issues post launch

Chartboost Menu item

Easier setup and control of AppID/AppSignature pairs

namespace Chartboost renamed to namespace ChartboostSDK

In C#, it is not recommended to have the same name for the namespace as well as for a class (class Chartboost provides the public API functions)

null / () no longer accepted as a location – you can pass in CBLocation.Default instead

Though we still have a default location, we encourage the use of more descriptive location names via the CBLocation class in order to provide more meaningful analytics

All locations are now passed in via the CBLocation class

The CBLocation class has several common location preset values available for use

Custom location strings are now passed in via the CBLocation class’ locationFromName(string) method

Chartboost SDK event names and method signatures have been significantly updated and improved

Brings API and functionality more in parity with Native SDKs

For more about the event functionality available, both old and new, please see the README.md file.

CBBinding.cs is essentially replaced by Chartboost.cs. If you used to call CBBinding.isImpressionVisible() then you’ll now want to call Chartboost.isAnyViewVisible() — see Chartboost.cs for all available methods.

Upgrading to 6.x

Delete old plugin folders:

PluginsAndroid //Android SDK files

PluginsiOS //iOS SDK files

PluginsChartboost //Sample project

Import the new SDK package:

Assets > Import Package > Custom Package

Navigate to the .unitypackage file you downloaded from Chartboost and use that

Select Import to complete the action (by default all package assets are marked for import)

Drag and drop the Chartboost prefab to your game scene from /Assets/Chartboost/Chartboost

Select menu item Chartboost > Edit Settings:

Press the Setup Android SDK button in ChartboostSettings in the Inspector window

Edit the AppID & AppSignature settings with your current values for each platform

Rename all using Chartboost; lines to using ChartboostSDK;

Rename all CBManager.CBImpressionError references to CBImpressionError