Transparent UIElement root

UIElement* root = GetSubsystem()->GetRoot();
parent = root->CreateChild();
parent->CreateChild();

Sometimes the background is black, sometimes it turns fully transparent, randomly. Any suggestion to make the parent always transparent?

Maybe try SetDefaultStyle on the root?

the ui root has been set with DefaultStyle