Game Texture - Always Face Camera

Hello,

Before you say this question has been asked multiple times, bear with me (it’s different)…

I want to get a texture within my scene to face my camera at a certain way. When I use:

transform.LookAt(Camera.main.transform);

It works fine, but I want my texture to appear more like a GUI, but with depth (so you can’t see it behind a game object).

Let me show:

[15425-screen+shot+2013-09-13+at+15.38.34.png|15425]

Both the alert textures have the LookAt camera attached to them, and as you can see - its working, but not how I want.

[15426-screen+shot+2013-09-13+at+15.39.43.png|15426]

This is how I want them to look. No matter where I am facing, the textures will always point ‘directly’ down the scene (instead of directly at the cloud point of the camera.

Any ideas how I can achieve this?

Could it be that you do not want them to face your position but instead to align with the opposite of your forward vector?

transform.rotation = Quaternion.LookRotation(-Camera.main.transform.forward);