Log in or register to post comments

Problem with duplicated ImageTargets in Unity Editor with Vuforia 6.2.10

April 19, 2017 - 5:30am #1

Hello,

 

when I put an ImageTarget Prefab from Vuforia Prefabs to the scene and set a predefined Target, all is well. I can do this many times. But when I do not pick new ImageTargets from the Prefabs folder, strange things happen.

 

What do I mean?

 

The first ImageTarget is build up with some objects as children. I want this for the next targets too. So I duplicate the ImageTarget in the Scene with all its children. When I set the ImageTarget in the duplicated ImageTarget GameObjects ImageTargetBehaviour, then the new (duplicated) AND the old one will be changed to the new ImageTarget Texture and Size. The texture changes all the time, when I click on the old or new (duplicated) ImageTarget in the scene. I I duplicate some more, the all have this strange behaviour. In the Editor they all show the ImageTarget Texture of the last clicked target. AND each time I set in the ImageTargetBehaviour a new ImageTarget ID, all other ImageTargets get the scaling from the new one. Very strange!

 

This happens with Unity 5.3.6 and 5.5.2 with Vuforia 6.2.10. (Unity on Mac OS, also tested on a second Mac)

I tested different Vuforia Versions and the error/unexpected behaviour occurs since Vuforia 6.2.6.

 

With older Vuforia this worked and was a nice Workflow. But now, every time take a ImageTarget Prefab from the Prefabs Folder and build the children for this target again is a pain, if you have to do this for 40 or 80 Targets. Why is the "duplicate" not working anymore as in old versions? All duplicated ImageTarget GameObjects seems to be connected to each other and this is not good!

 

What can I do? Use and old Vuforia Version?

 

Greetings,

 

Martin

Problem with duplicated ImageTargets in Unity Editor with Vuforia 6.2.10

July 10, 2017 - 2:04am #4

Hi.

Same problem with duplicate ImageTargets as Martin say with Vuforia 6.2.10.

I think this is a bug with this version and there is not newer version yet

 

Problem with duplicated ImageTargets in Unity Editor with Vuforia 6.2.10

April 20, 2017 - 1:00am #3

Yes, programmatically would work. We do this in some other Apps (loading DataSets at runtime and linking different Content to them). But we also have Apps, which were build completely in the Editor. Because for that type of Apps it´s faster to set them up. So I think we could only wait for a fix within the next Vuforia Version.

But anyway, thanks for your answer :)

Problem with duplicated ImageTargets in Unity Editor with Vuforia 6.2.10

April 19, 2017 - 12:05pm #2

Yes, I've experienced this same behavior when duplicating ImageTarget prefabs is that they become linked to same target. For my case, I dragged them out individually, but it was less than 20. For large amounts of ImageTargets, you may want to try setting them up programmatically at runtime. Here's an FAQ I wrote up about that technique:

https://developer.vuforia.com/forum/faq/unity-load-dataset-setup-trackables-runtime

Log in or register to post comments