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

RB.ClipDebugDisable

Method  -  Static

public static void ClipDebugDisable()

Parameters

No parameters.

Returns

Nothing.

Description

Disable clip region debugging, clip regions will no longer be drawn.

Example

const int LAYER_TERRAIN_MINIMAP = 0;

void Update() {
    if (RB.KeyPressed(KeyCode.F12)) {
        RB.ClipDebugEnable(Color.red);
    } else if (RB.KeyPressed(KeyCode.F11)) {
        RB.ClipDebugDisable();
    }
}

void Render()
{
    var oldClipRegion = RB.ClipGet();

    // Use clip region to render a minimap in the top left corner of the screen
    RB.ClipSet(new Vector2i(00128128);
    RB.DrawMapLayer(LAYER_TERRAIN_MINIMAP);

    RB.ClipSet(oldClipRegion);
}

See Also

RB.ClipDebugEnable
RB.ClipSet
RB.ClipGet
RB.ClipReset

See Docs

Features - Clip Region Debugging