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"

Help With Character blueprint

Hi guys, I'm struggling with the materials and character blueprints in UE4.

I've created a cloak material and apply it to my character blueprint to change my character material alt textand it works perfectly if I press a key.. Then I created a lava material and apply it to my character blueprint and it doesn't show. It change the material to the normal color but I want it to change from the cloak effect to lava pressing one key..

Please help me Thank you

Product Version: UE 4.11
Tags:
cloak effect.jpg (347.8 kB)
more ▼

asked Apr 19 '16 at 05:56 PM in Blueprint Scripting

avatar image

Marno
19 6 8 11

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

1 answer: sort voted first

Judging by your screenshot you don't have the lava material code hooked up to anything. Your flip flop is just going between cloak and normal material while your lava material change will never be called because nothing calls it. You have to hook it up to the key press event. My suggesting would be to hold a float to keep track of what state you're supposed to change to. 0 for cloak, 1 for lava, etc. Then you would simply check the variable when the key is pressed and go from there.

more ▼

answered Apr 19 '16 at 06:27 PM

avatar image

Alex8546
178 10 8 21

avatar image Marno Apr 19 '16 at 06:49 PM

Thank you so much for the reply but I've figured it out. The problem was never in my Character blueprint editor.. it was in the material editor and it was also a very stupid mistake I did. I forgot to drag the material on my character and then I went and hook it up to a key press event.

But thank you very much.

(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