/// <summary> /// Called every frame. /// </summary> void Update() { if (settings.screenVisible) { viewer.drawCall(screen); } }
/// <summary> /// Called every frame. /// </summary> void FixedUpdate() { if (settings != null && settings.screenVisible) { viewer.drawCall(screen); } }
public bool RenderViewer(RenderTexture screen, float cameraAspect) { //if (ViewerConstants.VVDEBUG) MonoBehaviour.print("RenderViewer call"); if (settings.screenVisible) { //MonoBehaviour.print("VV renderViewer method call"); //MonoBehaviour.print("VV render viewer call"); if (forceRedraw & textChanged) { forceRedraw = false; textChanged = false; //if (ViewerConstants.VVDEBUG) MonoBehaviour.print("Forcing redraw"); viewer.forceRedraw(); } //MonoBehaviour.print("screen draw call"); //if (ViewerConstants.VVDEBUG) MonoBehaviour.print("Viewer draw call"); viewer.drawCall(screen); //MonoBehaviour.print("screen draw call done"); return(true); } return(false); }