Drawing priority

Is there anyway to set X priority to

DrawRect
DrawSprite
DrawText

I mean is there a way to set which order of drawing will have for example a panel with 20 rectangles… so in one point i want to make the 18º rectangle draw before 19 and 20

i never found function for handle the drawing priority , but the game already have priority system , the first draw will be the lower priority and the last draw will be the higher priority.

1 Like

Yes i know about that… but in my case i need a function or something like that… anyway thanks for replying!