layer_is_draw_depth_forced


描述

This function can be used to check and see whether forced Z depth is enabled for rendering the layers in the project. See layer_force_draw_depth for more information.


语法:

layer_is_draw_depth_forced()


Returns:

Boolean


例如:

if !layer_is_draw_depth_forced()
   {
   layer_force_draw_depth(true, 0);
   }

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


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