Skip to content

Null Reference Error #22

@legeci

Description

@legeci

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions