How do I save an object after changing material in play mode?

In the widget:

In the BaseBP, you need an array of materials:

and this code:

and in the level BP:

1 Like