I am getting different behaviour from a prefab that is placed in the world and a prefab that is instantiated. When I put my prefab in the world everthing works fine. but when I Instantiate the prefab it seems like the code is not able to track a transform that is on a other child then where the code is on.
this is the prefab that is placed in the world like how it should work. here you see the red and a couple of green pixels from the lines that are in the same place.
now I Instantiate the same prefab from before.
in the gif you can see the lines do not allign with eachother and I do not understand why.
the code and the prefabs are exactly the same.
I hope someone can help me with this I am really stuck.