# SetTextDepth

## Description

Sets the draw order for the text between 0-10000, 0 being the front of the screen, 10000 being the back. Anything more than 10000 will result in the text being clipped from view.
By default text is set to depth 9 and appears above all other sprites in the scene, setting a greater depth will cause the text to be sorted into the transparent draw order list which may decrease performance. Use depth 0 for best performance.

## Definition

SetTextDepth( iTextIndex, iDepth )

void agk::SetTextDepth( UINT iTextIndex, int iDepth )

## Parameters

- iTextIndex - The ID of the text to modify.
- iDepth - The depth this text should be drawn at.