selene.camera
Provides functions for camera control and coordinate conversion.
| Property | Type | Description |
|---|---|---|
OnCoordinateChanged | Fired when the camera coordinate changes. |
| Function |
|---|
SetViewport(x: number, y: number, width: number, height: number) |
ScreenToWorld(screenX: number, screenY: number): worldX |
Converts screen coordinates to world coordinates. |
GetCoordinate(): Coordinate |
Returns the current target coordinate of the camera. |