godot3 mouse position

in #godot38 years ago
func _input(e):
    if (e is InputEventMouseButton
    and e.button_index == BUTTON_LEFT and not e.pressed):
        print("Mouse Click/Unclick at: ", e.position, 'g: ',get_viewport().get_mouse_position())

Coin Marketplace

STEEM 0.04
TRX 0.31
JST 0.073
BTC 63719.64
ETH 1673.22
USDT 1.00
SBD 0.42