Log in or register to post comments

Multitarget size: Surround/encapsulate multitarget with object

March 1, 2018 - 12:32pm #1

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?

Multitarget size: Surround/encapsulate multitarget with object

March 2, 2018 - 8:51am #2

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.

Log in or register to post comments