layer_get_forced_depth


描述

This function can be used to retrieve the Z depth set for rendering layers within the room. See layer_force_draw_depth for more information.


语法:

layer_get_forced_depth()


返回:

Real(实数)


例如:

if layer_get_forced_depth() != 0
   {
   layer_force_draw_depth(true, 0);
   }

The above code checks to see if the layer Z depth is forced to a value of 0 or not and if it is not, it sets the layer Z depth to 0.


上一页: General Layer Functions
next: layer_script_begin
© Copyright YoYo Games Ltd. 2018 All Rights Reserved