x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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"

Product Version: UE 4.20
Tags:
more ▼

asked Oct 16 '18 at 05:46 PM in Blueprint Scripting

avatar image

phaeton1911
11 3 8 13

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

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.

more ▼

answered Oct 16 '18 at 07:10 PM

avatar image

Entropikz
113 16 20 26

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question