"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Multitarget size: Surround/encapsulate multitarget with object

Hi all! I am currently working towards the Hololens and I have made some cuboid multi targets. I would like to surround the targets with a cube object when they are recognised, and I want to set the size of these cube objects in a script.

My problem is that it seems to be impossible to get the size of these multi targets in the scripts. I have tried GetComponent<MultitargetBehavior>.Multitaget.GetSize() (don't remember the exact syntax) but it only casts an exception which states that the multitarget object reference is null (MultitargetBevior is not null if someone is wondering).

Does anyone know a way of getting the size the multi targets?

martiningeson

Fri, 03/02/2018 - 16:51

I solved it by reading the XML generated by Vuforia, which contains the size values. I would still appreciate suggestion on simpler solutions though, since it takes time searching the xml.