You created the Main HUD widget, but you never add it to the viewport?
If you’re creating the Main HUD widget somewhere else, promote it to a variable, and use it as a reference to add the child widget. Or, if you haven’t already created it somewhere else, you’ll need to add it to the viewport before you add the child.
i already have my main hud widget added to viewport in my level blueprint. i will have to cast to my level somehow to get the reference. and i do not want that since my level may change and then i will have to change my level reference whenever i do that. the widget already has other stuff in it and the stuff shows up so that means it should work too. also if my widget wasnt added to viewport i wouldnt have been able to see my button and add the childs using it.
Why not add the main hud widget to the viewport from within your player pawn, this way you will have a reference to it for when you need to add the child.
i created a function that adds my mainhud to the viewport in my character blueprint and i am calling it from my level blueprint. that seems to have solved this issue. thanks for the suggestion :).
thats exactly what i was doing it. the thing is i cant do this using any blueprint other than the the widget it is being added in [the widget in which im adding the textbox dynamically in.] or the level blueprint. however i figured out a simple fix.