var angle = temp.transform.rotation.eulerAngles;
angle.y = 90;
temp.transform.rotation = Quaternion.Euler (angle);
I have tried this and some other variation to change the rotation of the instantiated prefab but it does not work at all.
How can I fix this?