Log in or register to post comments

Dynamic Dataset Runtime

December 18, 2017 - 5:57am #3

Hey Guys,

I im trying to load datasets dynamically at runtime but i am having an error of "NullReferenceException: Object Reference not set to an instance" at this line

DataSet dataSet = objectTracker.CreateDataSet(); when using the vuforia documentation from this link:


Has something changed in the above steps now that vuforia is integrated into unity 5.6?

Basically what i would like to achieve is to load specific datasets based on user login (Fetch Dataset based on User id), at the moment i cant even load a new dataset even from the streamingassets folder.

Any help or pointers as to where to look is greatly appreciated.

Thank you in advance.

Dynamic Dataset Runtime

December 18, 2017 - 11:49am #2

Hello alexBasnett,

If the objectTrack is null from TrackerManager.Instance.GetTracker<ObjectTracker>() that usually means you are running this code when Vuforia isn't initialized. Are you running your loading in the VuforiaStartedCallback like in the sample script provided in the linked post, or in general after Vuforia has been started?


Vuforia Support

Dynamic Dataset Runtime

December 20, 2017 - 10:58pm #1

Hello Strasza, thank you for the quick reply, I think the script was running before vuforia was started so that might be the problem. I will check it out and see. But i think we have decided to go with the cloud recognition and give that a try and see if it fits our needs better.

A few things I would also like to ask concerning the cloud recognition. Can the metadata store positional data of the model (augmentation). Could i use lets say threejs to create my augmentations and export (position,scale etc) metadata and upload both the target and metadata to vuforia cloud manager?

Thank you again in advance

Log in or register to post comments