|flag||Set to true to turn on drawing, and false to turn it off.|
With this function, you can toggle on (true) or off (false) drawing the collision data for the current skeletal animation sprite being used by the instance. If this is switched on, the bounding box and the precise collision mask will be drawn as outlines around the sprite.
IMPORTANT: Spine integration in GameMaker: Studio is a Pro licence feature and will not work in the Free/Standard versions.
if debug_mode == true
The above code checks to see if the game is being run in debug mode and if it is, it toggles the skeletal collision data for the instance to be shown.