By martiningeson
on Thu, 03/01/2018 - 20:32
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?
I solved it by reading the
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.