Open dtturcotte opened 1 month ago
UI element of rexUI usually does not change depth (order of rendering) of children game objects. It seems that Background is created after Image, thus Background will render after Image. To solve this issue, you can set depth of Background manually, or
var background = dialog.getElement('background');
dialog.sendChildToBack(background);
For some reason, I can't pass in a game object, like an image, into rexUI dialog and have it display. The image seems to only show if I create the image directly within the config object of dialog. This is the case even when I add the image to the same scene, and set the depth to higher than its other elements. If I remove the background (a roundrectangle), however, the image shows. So, it seems to be simply blocked by other elements.