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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Automatically update material by

Hello everyone!

So, I have a question about automatically update material by sun direction. The point is I have Day/Night cycle, and I also have material which need to be refreshed if sun direction changes. So, I have a blueprint which contain sun direction node, and placed in to the material. But, I really need to know how to refresh materials automatically?

This is the screenshot of my blueprint which contained sun direction node. Blueprint

Product Version: UE 4.10
blueprint.png (131.3 kB)
more ▼

asked Nov 24 '15 at 01:25 PM in Blueprint Scripting

avatar image

10 5 7 8

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

1 answer: sort voted first

You need to do it in Event Graph instead of Construction Script and execute the function either with Event Tick or with a Timer.

more ▼

answered Nov 24 '15 at 01:29 PM

avatar image

16.8k 671 167 676

avatar image EvaFrise Nov 24 '15 at 01:50 PM

So, do u mean that I need to delete all of construction script, or I can just copying set my construction to the main event tick for sun trajectory or sun direction?

avatar image EvaFrise Nov 24 '15 at 01:54 PM

Oh dude, really thanks it helps too much!!!

avatar image Jacky Nov 24 '15 at 02:01 PM

No problem. Btw, you dont need to set that bool to false with the branch's True pin. What you have currently doesnt have any effect so get rid of the set bool, plug Set vector parameter to True and unplug it from False. Now you can control whether it should update or not by the refresh bool anytime and anywhere you like.

avatar image EvaFrise Nov 24 '15 at 02:20 PM

So, why I need to have branch node in this case? That things do u mean? Blueprint

blueprint.png (145.5 kB)
avatar image EvaFrise Nov 24 '15 at 02:24 PM

this way doesn't working, except my previous version of construction script

avatar image Jacky Nov 24 '15 at 02:33 PM

You need to set the default value of the bool to True for this to work. And you dont need to use a branch if you dont need to enable/disable this function in runtime.

avatar image EvaFrise Nov 24 '15 at 02:37 PM

Thanks, it works fine! The question is resolved!

avatar image TheSubZer0 Jul 08 '18 at 11:30 PM

where can I find mpc_sunDirectionalLight??????????????

(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