I’m currently making a game that renders wire frame during game play. One downside of this is that any GUI I have is rendered wireframe as well making it a completely useless block. Is there any way to fix this without reworking everything like rendering specific layers wireframe? Thanks for your time!
I’m using this little snippet to render everything wireframe.
Alright, I figured it out. Gl.wireframe renders everything after that statement wireframe. There’s a snippet of code in there that will cause the camera to render everything except for the GUI wireframe.
// Attach this script to a camera, this will make it render in wireframe
function OnPreRender() //This is what actually causes it to render wireframe. This happens before anything is rendered.
{
GL.wireframe = true;
}
function OnPostRender() //This causes it to stop rendering everything wireframe before the GUI is rendered.
{
GL.wireframe = false;
}