Object facing camera always in 2D game?

I’m working on 2D game and I’m trying to use the third person controller for my character but I need my character to always face the camera so he can be seen. Perhaps a modified version of the script which cancels out the part where the character turns left/right on A/D? Or maybe just a face camera option somewhere in Unity’s tools?
Thanks!

To be clear, the game is 2D, but the graphics are 3D, right?

1 Answer

1

At the end of the script, you can try to add this.

transform.LookAt(camera);

Ive tried this but I seem to be running into quite a few compiler errors and I'm not quite experienced enough to figure them out. I'll keep trying though so thank you. :)

Post the third person controller script and I'll modify it for you.