Method GetMousePosition
GetMousePosition(float, bool)
Get the mouse position in the scene or game view.
Declaration
public Vector2 GetMousePosition(float ScreenHeight, bool sceneView)
Parameters
| Type | Name | Description |
|---|---|---|
| float | ScreenHeight | Window height. |
| bool | sceneView | Get position in the scene view? |
Returns
| Type | Description |
|---|---|
| Vector2 | Coordinates of the mouse in the specified window. |