I have a ref 'optionsMenuRef' of a widget inside my 'GameScreen' widget, when I reload my map this optionsMenuRef still shows the same data as before the reload of the map (OptionsMenu_C_41 or whatever), but I can't display this optionsMenuRef anymore. I use 'Set visibility' to display my OptionsMenu but it doesn't work after a map reload.
Now although the optionsMenuRef variable still points to the same variable - so it does exist - it won't show from a 'Get All Widgets of Class' call. If I use 'Top Level Only' it does return my widget.
How is this meant to work? I guess it's a garbage collecting issue or something? I am running 'IsValid' on my optionsMenuRef which will say it is valid although 'Get All Widgets of Class' returns 0 if I don't use the 'Top Level Only' flag.. so does this mean IsValid doesn't work on widgets? Or isn't reliable?
Thank you.
Now although the optionsMenuRef variable still points to the same variable - so it does exist - it won't show from a 'Get All Widgets of Class' call. If I use 'Top Level Only' it does return my widget.
How is this meant to work? I guess it's a garbage collecting issue or something? I am running 'IsValid' on my optionsMenuRef which will say it is valid although 'Get All Widgets of Class' returns 0 if I don't use the 'Top Level Only' flag.. so does this mean IsValid doesn't work on widgets? Or isn't reliable?
Thank you.
Comment