cnwerb Posted December 18, 2016 Share Posted December 18, 2016 Is there any way to give a containers hitArea a visible border? I want to do this just for debugging and testing purposes because the hitArea is created at runtime and I want to make sure its the right size and location. Also, if a container is dragged around or zoomed into, does its hitArea also move/resize accordingly? Quote Link to comment Share on other sites More sharing options...
xerver Posted December 19, 2016 Share Posted December 19, 2016 Create a Graphics object and draw the shape, then add it as a child of your object that has the hit area. Quote Link to comment Share on other sites More sharing options...
cnwerb Posted December 19, 2016 Author Share Posted December 19, 2016 7 minutes ago, xerver said: Create a Graphics object and draw the shape, then add it as a child of your object that has the hit area. Thank you. As for the other question, do the hitAreas move/resize if their parent containers move/resize? Quote Link to comment Share on other sites More sharing options...
xerver Posted December 20, 2016 Share Posted December 20, 2016 Move, yes; resize, no. Quote Link to comment Share on other sites More sharing options...
cnwerb Posted December 20, 2016 Author Share Posted December 20, 2016 4 hours ago, xerver said: Move, yes; resize, no. So I would have to manually scale/resize the hit area if their container is scaled, yes? Quote Link to comment Share on other sites More sharing options...
xerver Posted December 20, 2016 Share Posted December 20, 2016 The hit area is a rectangle in pixels, so yes. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.