Set image of parent in child widget

I want to create a unique weapon icon widget for each type of weapon in my game.

I have the common functionality in a parent “base weapon icon” widget.

I have an Image in my base weapon icon widget which i would like to update/override in my child widget.

What is the best way to do this?

Thanks

1 Like
  • providing this is the parent:

  • either a child or a parent can now call SetNewWeaponIcon
  • and update the widget:

image

If a child calls this, it will use its own Icon:

Above, do note that you want to call, rather than override. Nothing to override here, the parent has done the hard work already. Unless you want to do something else and/or additional with the new icon for the child:

1 Like

Thanks! This is exactly what i need.