unity rotate object relative to camera

C#
     transform.rotation = Quaternion.LookRotation(-Camera.main.transform.forward, Camera.main.transform.up);
Source

Also in C#: