change text on actors widget when actor is spawned in

I have a card actor and Card widget. The actor contains the widget. I want to change the widget text on the actor when it get spawned

widget script

Actor script

Screenshot 2026-03-11 171955

solution:

I had to Construct the widget and set it to the widget component of the actor