Problems switching UMG Image Texture on startup

Hey,

on the start of the game i want to dynamically switch the texture of an UMG Image. I do it on the EventBeginPlay of the PlayerPawn and switch the texture using the SetBrushFromTexture function in blueprints.

When i start the game from the editor, it seems to work only randomly sometimes (timing issues?) → If i start just 1 client, it pretty much never works. If i start the game with 2 Clients, it usualy doesn`t work on the first start but it works on any consecutive start.

Any hints?

You should post some screenshots of the blueprints you’ve created, what they look like and how you’ve set things up. Could be a timing issue, the order of things is not always as you might expect. Like the pawn can be created before the player controller, and later the player controller possesses it (server only). So if you’re trying to access information on the controller of the pawn on begin play, that can cause some problems.

You should add some print string statements to your code, or use the blueprint debugger to make sure things are happening in the order you expect.