Class CameraUtils
Static class providing various camera utility functions.
Inheritance
Namespace: AS2
Assembly: .dll
Syntax
public static class CameraUtils
Methods
| Edit this page View SourceGetHightestXYCameraWorldPositions()
Computes the top right corner of the active camera's bounding box in world coordinates.
Declaration
public static Vector2 GetHightestXYCameraWorldPositions()
Returns
Type | Description |
---|---|
Vector2 | The (x, y) coordinates of the active camera's bounding box's top right corner. |
GetLowestXYCameraWorldPositions()
Computes the lower left corner of the active camera's bounding box in world coordinates.
Declaration
public static Vector2 GetLowestXYCameraWorldPositions()
Returns
Type | Description |
---|---|
Vector2 | The (x, y) coordinates of the active camera's bounding box's lower left corner. |
MainCamera_Mouse_WorldPosition()
Computes the current world position of the mouse cursor.
Declaration
public static Vector2 MainCamera_Mouse_WorldPosition()
Returns
Type | Description |
---|---|
Vector2 | The (x, y) world coordinates of the current mouse position. |
MainCamera_WorldPosition_BottomLeft()
Bottom left world position of the main camera. (Unity World Coordinates)
Declaration
public static Vector2 MainCamera_WorldPosition_BottomLeft()
Returns
Type | Description |
---|---|
Vector2 | The (x, y) world coordinates of the active camera's bottom left corner. |
MainCamera_WorldPosition_BottomRight()
Bottom right world position of the main camera. (Unity World Coordinates)
Declaration
public static Vector2 MainCamera_WorldPosition_BottomRight()
Returns
Type | Description |
---|---|
Vector2 | The (x, y) world coordinates of the active camera's bottom right corner. |
MainCamera_WorldPosition_TopLeft()
Top left world position of the main camera. (Unity World Coordinates)
Declaration
public static Vector2 MainCamera_WorldPosition_TopLeft()
Returns
Type | Description |
---|---|
Vector2 | The (x, y) world coordinates of the active camera's top left corner. |
MainCamera_WorldPosition_TopRight()
Top right world position of the main camera. (Unity World Coordinates)
Declaration
public static Vector2 MainCamera_WorldPosition_TopRight()
Returns
Type | Description |
---|---|
Vector2 | The (x, y) world coordinates of the active camera's top right corner. |