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"

Change materials upon action

Hi! There is probably a simple solution, but I can't quite work it out. I have a shop in which you can buy armor for your character, however (being a low poly game since I'm not a 3D modeler) I just want the colour (or color) to change on the chest plate the character is wearing, similar to Link changing his tunic in Ocarina of Time. Any ideas? The context in which I am in is if I am near a certain building (in the form of an actor blueprint) a widget that appears gives an option of things to buy. When a button is pressed to buy an item stats should go up (that part is sorted) and the colour of my chestplate should change.

Product Version: UE 4.21
Tags:
more ▼

asked Apr 03 '19 at 11:12 AM in Using UE4

avatar image

GanondorkSS
6 1 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Create a dynamic material instance. (i usually do this in the construction script) alt text Also make sure the MAterial has a Texture, Vector Or Scalar Parameter with a name (Color) the name is important. alt text Set Parameter (Scalar, Vector or Texture) to change the Color in my example. :) alt text

answerhub.png (71.9 kB)
answerhub2.png (52.6 kB)
answerhub3.png (49.0 kB)
more ▼

answered Apr 03 '19 at 11:42 AM

avatar image

lkav
1.4k 9 5 10

avatar image GanondorkSS Apr 03 '19 at 11:53 AM

Aha! Not as simple as I thought it would be, but a solution nonetheless! Thank you! I'll give it a try

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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