Cast to widget

I believe the widget would first have to be a persistent variable and, in most cases, it isn’t. Casting arbitrarily to a widget is not easy in that respect… The object would most likely result in a “Accessed None” situation.

A more solid approach would be to retrieve those variables from inside the widget by casting to the blueprint in which they are stored from EventConstruct or EventPreconstruct and populate them at that point.

1 Like