RB.PresentDisable
Method - Static
public static void PresentDisable()
|
Parameters
No parameters.
Returns
Nothing.
Description
Disables the final RetroBlit render pass, and does not render to screen. This method is useful if custom rendering is needed. The display surface can be retrieved with RB.DisplaySurface as a Texture and then rendered in Unity in any way desired.
See the Old Days demo scene for an example of integration of the RetroBlit display surface into an existing scene.
Example
private void Initialize() { RB.PresentDisable(); }
private void Update() { var tex = RB.DisplaySurface; tex.filterMode = FilterMode.Bilinear;
myRenderer.materials[2].mainTexture = tex; myRenderer.materials[2].color = Color.white; } } |
See Also
RB.PresentEnable
RB.DisplaySurface
See Docs
Features - Taking Over The Display
|