Table of Contents

Class Camera

Namespace
AO
Assembly
CoreAssembly.dll

Functions for working with the game's camera.

public static class Camera
Inheritance
Camera
Inherited Members

Methods

CurrentCameraOrthographicSize()

public static extern float CurrentCameraOrthographicSize()

Returns

float

GetCurrentCameraWorldRect()

public static Rect GetCurrentCameraWorldRect()

Returns

Rect

ScreenToWorld(Vector2)

Convert a screen coordinate to world space.

public static extern Vector2 ScreenToWorld(Vector2 screen)

Parameters

screen Vector2

Returns

Vector2

WorldToScreen(Vector2)

Convert a world coordinate to screen space.

public static extern Vector2 WorldToScreen(Vector2 world)

Parameters

world Vector2

Returns

Vector2