Wednesday, 14 August 2013

How can i make 3dObjects infront gui texture in unity3d

How can i make 3dObjects infront gui texture in unity3d

I created gui texture by writing hard code in gui funtion in script.
Main camera depth is -1
void OnGUI() {
GUI.DrawTexture(new Rect(screenResolution.x - 25 * guiDiff,
screenResolution.y - 310 * guiDiff, 15 * guiDiff, 300 * guiDiff),
fullProgressBar);
}
How can i make 3d objects infront of it?

No comments:

Post a Comment