layer_is_draw_depth_forced


Description

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.


Syntax:

layer_is_draw_depth_forced()


Returns:

Boolean


Example:

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.


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