skeleton_collision_draw_set


语法:

skeleton_collision_draw_set(flag);

参数 描述
标识 Set to true to turn on drawing, and false to turn it off.


Returns:

N/A(无返回值)


描述

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.

重要!该函数在试用版(Trial License)产品中可用。


例如:

if debug_mode == true
   {
   skeleton_collision_draw_set(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.