I want to be able to create elements that are not affected by the Movement of the AR Camera and stay at the same position on the screen on each frame.
It doesn't matter if elements are child of ImageTarget or not, they are moved anyway if a trackable is scanned.
I already tried to add a script to the elment that should be "attached" to the cam:
transform.position = Camera.main.ViewportToWorldPoint(new Vector3(0,1,0));
transform.position = Camera.main.ScreenToWorldPoint(new Vector3(15, Screen.height - 50, 10));
but that doesnt work. I need to have a Transform for the Element so I can create something like a HUD and that is connected with a LineRenderer to the ImageTarget so that the line is connected to the target at all times.
Thanks for your help.