Dynamically creating targets #391
Unanswered
philipp-lehmann
asked this question in
Q&A
Replies: 1 comment
-
The issue seems to arrise when aframe or mind-ar is loaded. The function would work well.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I try to track quite a lot of targets, so naturally I trying to initate them dynamically.
First question: Is this even recommended/feasible?
My problem is that in the line
newEntity.setAttribute("mindar-image-target", "targetIndex: " + i);
the attribute is set empty.The weird thing is when changing it to something generic the code works.
Here is an example for the output
What am I missing? Any help is appreciated.
Cheers
Beta Was this translation helpful? Give feedback.
All reactions