update dynamic HUD texture

i have a simple weapon selection display, just a material instance mounted on the hud, and i need the texture in the material to change everytime i select a different weapon.

it seems that i cant cast to the hud from the player character and i cant figure out how to remotely update the material instance from inside the player character either.

it literally just needs to be a “press 2 >texture param changes to shotgun, press 3 > changes to smg”

To get the HUD from player character you’ll want to get the characters controller then cast as player controller. From there you can get the HUD ref. The HUD is stored in player controller by default.