Skip to content

Camera ​

class in OpalScript

Convert between scene world coordinates and canvas screen pixels.

Methods ​

MemberDescription
Camera.WorldToScreenProject a world point through the current rendered viewport into canvas CSS pixels, including camera zoom and shake.
Camera.ScreenToWorldConvert canvas CSS pixels through the current rendered viewport into scene world coordinates.

See also ​