Material Box

Material Box

WEBデザイン & フリー素材

Godot - マウスの座標を取得する

Godot

マウスの座標を取得するGDScriptのコード例です。


ビューポート表示でのマウス座標はget_mouse_position()にて取得可能です。

var mouse_position = get_viewport().get_mouse_position()

グローバル表示でのマウス座標はget_global_mouse_position()にて取得可能です。

var mouse_position = get_global_mouse_position()

Godot

TitleGodot - マウスの座標を取得する

CategoryGodot

Created

Update

AuthorYousuke.U