Texture UNDER one camera that is scaleable.

Hi guys!

I’m having trouble with rendering a solid texture behind a camera, that is on top of my main gameview. I can’t do the OnGUI method, as it will render ON TOP of all the cameras (It needs to be on top of one, and below another (The Main Camera)). I’ve however fixed a small part of the problem by using the GUITexture (which is fine for early prototyping), but it doesn’t scale at all, as it’s defined using pixel size, which doesn’t scale.

I’ve taken a picture of what I’m trying to achieve (but with the no scale limitation).

1277974--57346--$Screen Shot 2013-06-20 at 1.14.50 AM.png

The screenshot shows what I ultimately wants to achieve - I just want to approach it through scripting.

Any ideas?

No one? Is it that you don’t know the solution for the problem - or is the question poorly written?

If you want to render below any camera output, it could not be accomplished using the UnityGUI.

You should use some of the GUI frameworks that render in world, find it here: EditorExtensions/GUI.

Thanks for the reply!

But I don’t quite believe that you’re 100% right on that, as the screenshot I provided does actually render a texture BEHIND the camera (The black border is a dark grey solid square BEHIND the camera window) - my only problem is that it’s not achieved through scripting, and I was hoping someone had a trick to fix this! :slight_smile:

However, with that said, I WILL check out that category under the asset store, as It’s something I’ve completely forgot! I just didn’t think that I had to go 3rd party to get it to work - as it seems like such a simple task!
Thanks a bunch though, mate.

There are multiple GUI genres covered with the existing Asset Store packages.

I’m sure you will find the one fitting your purpose. :slight_smile: