Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

timstoop/godot-test-mouse-drag-viewport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mouse dragging the ViewPort/Camera

I'm trying to make it so I can get the effect from most RTS games, pressing the left button on my mouse to "grab" the world and dragging the mouse to pan the view. But it seems the Camera2D does not get sent any unhandled events? Did I make a mistake?

Solution

A ColorRect is a Control object as well, so we need to make sure it ignores mouse events.

About

Trying to get a draggable viewport.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published