I went through the docs and did some code but I don't quite understand how to solve my problem yet.
To clarify: I want the same GameObject(s) to show up on any of the Targets from DataSet. So ideally I want to be able to change "Image Target" property at run-time depending on which Target is currently visible. I don't know how to do that tho.
That is how I am trying to solve this:
// in Update()
var trackableBehaviours = TrackerManager.Instance.GetStateManager().GetTrackableBehaviours();
// Loop over all TrackableBehaviours.
foreach (TrackableBehaviour trackableBehaviour in trackableBehaviours)
{
if (trackableBehaviour.CurrentStatus == TrackableBehaviour.Status.TRACKED)
{
Debug.Log("I see: " + trackableBehaviour.Trackable.Name);
// I now want to attach House GO to this Target but it does not work
house_.transform.parent = trackableBehaviour.transform;
}
}
but It does not work for me. House model does not show up on that Target, it still only shows up on the ImageTarget originally set up on the scene. Please advise.
I went through the docs and did some code but I don't quite understand how to solve my problem yet.
To clarify: I want the same GameObject(s) to show up on any of the Targets from DataSet. So ideally I want to be able to change "Image Target" property at run-time depending on which Target is currently visible. I don't know how to do that tho.
That is how I am trying to solve this:
// in Update()