Log in or register to post comments

how to delete dynamic area target on memory?

February 5, 2021 - 12:20am #1

I used vuforia area target.

link : https://developer.vuforia.com/vui/auth/login?url=/downloads/tool%3Fd%3Dwindows-4891549-17-11085%26retU

I used linked source to make area target ( DataSet and AreTarget ).

Linked Source , there was only DeactivateDataset and DisableAreaTarget in source.

I want to Delete DataSet And AreaTarget On Memory.

how to delete it on Memory?

1) How to delete one by one.

2) How to delete all.

how to delete dynamic area target on memory?

February 8, 2021 - 1:37am #2


In order to free up memory, it is required to Destroy the GameObjects and DataSet.

By performing below steps in following order, the memory should be released:

1. Destroy the GameObject after it has been disabled using something like this Destory(areaTarget)

2. Destory the DataSet by running areaTracker.DestroyDataSet()

More information can be found here on Destroy: https://library.vuforia.com/sites/default/files/references/unity/classVuforia_1_1DataSet.html#a7ac1b4719bb0ecaa731e21c09c09df35

In general if you are interested how to stich up different Area Targets, please go over our documentation: https://library.vuforia.com/develop-area-targets/combining-multiple-area-targets which provides a recommended way of performing it.

Thank you.

Vuforia Engine Support

Log in or register to post comments