Start a new topic

Prefab transformation for different objects

Hi, I have three ObjectTargets, and I also have a GameObject prefab called Waypoint Arrow. What I want is that arrow assigned to each ObjectTarget, but I want different rotation of an arrow on each ObjectTagret. Can you give me some advice how to do that?
I am using SDK 8, Unity 2018.4.11 and I am new to Unity and Wikitude.
What I did so far is: I made a .wto file and assigned it to three ObjectTargets. then I added Arrow prefab as a child of Trackable on each ObjectTracker. I changed the rotation of an arrow in Play mode, copied those values ​​and pasted them, but when I press Play again, nothing has changed. Also after that there are different values ​​for Trackable and Arrow, which I don't understand why. Those ObjectTrackers work fine independently, in individual projects, but like this no.
The closest I found on the forum is this: https://support.wikitude.com/support/discussions/topics/5000086632, but it's not working for me.

Thank you for your help in advance!

Hi,


I'm glad to hear that everything is fine now. There is no limit to how many Trackables you can have on a Tracker.


Best regards,

Alexandru

 Hello Alexandru,


Everything works now, thank you. Can you tell me is there a limit of ObjectTrackables to the single ObjectTracker?

Best regards

Hi,


You shouldn't be using multiple ObjectTrackers as that is not supported at the moment, but rather have a single ObjectTracker with a .wto file that contains all three objects. You can then add three ObjectTrackables as children to that single ObjectTracker and for each trackable you can specify with which target it is associated and what augmentation it should have.


Please let me know if that works for you, or if something is still not clear.


Best regards,

Alexandru

Login or Signup to post a comment