Esposter
    Preparing search index...

    Interface DepthConfiguration

    interface DepthConfiguration {
        depth: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    depth: number

    The depth of this Game Object within the Scene. Ensure this value is only ever set to a number data-type.

    The depth is also known as the 'z-index' in some environments, and allows you to change the rendering order of Game Objects, without actually moving their position in the display list.

    The default depth is zero. A Game Object with a higher depth value will always render in front of one with a lower value.

    Setting the depth will queue a depth sort event within the Scene.