HaxeFlixel / flixel-ui

GUI library for HaxeFlixel
171 stars 63 forks source link

Fix mouse overlaps with this in a different camera #243

Closed gamerbross closed 1 year ago

Geokureli commented 1 year ago

I'm afraid this isn't a valid solution in most cases. camera (and cameras) by default is null, during a draw phase FlxGroups sets FlxCamera.defaultCameras = this.cameras so that all members will, by default draw to those cameras. So outside of a draw phase we really have no way of knowing what camera it will draw to. and in some cases this can cause it may use the wrong camera.