- Home /
How to stop rendering
Hello.
I'm using the webplayer, and I need to overlay a window on TOP of the unity Webplayer. I discovered that Unity is not like flash and does not really supply much for you to do this. The only ways I've found it possible is to stop rendering. Is there a simple way to stop Rendering?
Thanks, stringa
Comment
Answer by BinaryCaveman · Nov 12, 2010 at 12:10 AM
You could use a script to disable a camera's Camera compoent, like this (in javascript):
var cameraObject : Camera;
function disableCamera()
{
cameraObject.GetComponent(Camera).enabled = false;
}
EDIT: As @Statement commented below, I already have a camera, so there is no need to call GetComponent()
.
var cameraObject : Camera;
function disableCamera()
{
cameraObject.enabled = false;
}
You already have the camera, so no need to call GetComponent.