Over17 / UnityOBBDownloader

This is Unity plugin for Android, intended to download .obb expansion files from Google Play.
Apache License 2.0
166 stars 61 forks source link

Null Reference Error #22

Open legeci opened 4 years ago

legeci commented 4 years ago

Hi I'm trying to use OBB with Unity 2019.3, I keep receiving a object null reference error in the public key section specified on the DownloadOBBExample. It happens when I attached to the main camera or game object....

m_obbDownloader.PublicKey = " "; // YOUR PUBLIC KEY HERE

I've tried creating a separate public string and then assigning it...

public string mykey;

(I assigned my actual key using the void Awake() method to load before the Start method)

m_obbDownloader.PublicKey = myKey;

I'm not sure why its causing this error....