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

RB.CameraGet

Method  -  Static

public static Vector2i CameraGet()

Parameters

No parameters.

Returns

Vector2i

Camera position

Description

Get the current camera position.

Example

const int LAYER_TERRAIN = 0;

void Render()
{
    var oldCameraPos = RB.CameraGet();

    RB.CameraSet(worldPos);
    RB.DrawMapLayer(LAYER_TERRAIN);
    RB.DrawSprite("hero"new Vector2i(00));

    RB.CameraSet(oldCameraPos);
}

See Also

RB.CameraSet
RB.CameraReset

See Docs

Features - Camera