ShowLineRectangles
Last updated
Last updated
The ShowLineRectangles value controls whether dotted-line rectangles will be drawn around components. This value can help you debug where components are when they do not have visual elements, or to help you identify the clickable region when testing UI.
ShowLineRectangles can be set through the FlatRedBall Editor UI. To change this value in the editor:
Select the gum project file (usually GumProject.gumx in Global Content Files)
Click the Gum Properties tab
Check or uncheck Show Dotted Outlines
This value is applied only when new GraphicalUiElements are created, so changing it will not have an immediate impact on existing GraphicalUiElements. If you would like to turn off line rectangles, set this value to false before GlobalContent.Initialize is called in your Game1.cs file. For example, your code might look like this: