AudioAsset
Ease
FastString
FontAsset
NineSlice
PackedSprite
PackedSpriteID
RB
   HardwareSettings
   IRetroBlitGame
RBAsset
Rect2i
ShaderAsset
SoundReference
SpriteGrid
SpriteSheetAsset
TMXMapAsset
   TMXLayer
   TMXLayerLoadState
   TMXObject
   TMXObjectGroup
   TMXProperties
Vector2i

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()
    {
        // Get the RetroBlit display surface and assign it to a material
        // in a Unity scene
        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