UnityOBBDownloader icon indicating copy to clipboard operation
UnityOBBDownloader copied to clipboard

Null Reference Error

Open legeci opened this issue 6 years ago • 0 comments

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....

legeci avatar Apr 20 '20 20:04 legeci