Start a new topic

3D Model get target name

3D Model get target name


Hello,

Yes i'm using wildcard so i solved using "nEnterFieldOfVision" :)

 

Not sure if I understood the question but you already know the targetName when you create the 3D model.
That way you can e.g. define an attribute when creating the AR.Model so that you have then easy access to the targetName.

var myTrackable2D = new AR.Trackable2DObject(...)

var myModel = new AR.Model(....)
myModel.targetName = trackable2D.targetName;
...
myModel.onClick = function() {
    console.info('TargetName' + this.targetName);
}

 

Note In case you're using wildcard for targetName first param of onEnter-/onExitFieldOfVision holds the latest targetName.

Hello,

It's possible when a 3d model is showing up, detect the target name on model click?
Login or Signup to post a comment