instanced object look at camera?

hey

i have an object that is created by an instantiate function

i need this object to look at the camera when it is added to the scene

my script works perfectly fine if the object is already existing in the scene from the start, but i cant assign the target camera to the prefab, so when its instanced it doesnt look at the camera

any help?

do you want it to continuously look at the camera? or just at the start, when it is Instanced?

Look at Camera.main.transform instead of relying on a variable.

Thanks Vic worked perfect :slight_smile: