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"

How to change character material with UMG ?

So here is my character : alt text

as you can see, he has 5 materials. So what I want to do is to be able to change any material using some umg buttons, I tried by creating a custom event but it don't seems to work : alt text

alt text

Product Version: UE 4.20
Tags:
capture.png (448.0 kB)
d.png (33.2 kB)
c.png (43.9 kB)
more ▼

asked Nov 05 '18 at 06:35 PM in Blueprint Scripting

avatar image

misterrider
1 2 8

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

2 answers: sort voted first

The Out Actors is an array, maybe try to get a specific actor first.

more ▼

answered Nov 05 '18 at 07:06 PM

avatar image

Everynone
12.6k 72 24 53

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

Several things to debug:

  • Is your OnClicked event firing? (add a print string before the get all actors)

  • Is your isBlue event firing? (add a print string before the set material by name)

  • Is your material slot name properly input? (trimmed without trailing spaces or special characters)

  • Did you try to set material by element index instead to see if it worked?

Any one of these will give you insight into what is happening and help you fix it.

more ▼

answered Nov 05 '18 at 07:09 PM

avatar image

MajinSephiroth
1.2k 31 8 32

(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