How to get System Time inside a Material Blueprint?
I need to be able to read the local system's time of day in seconds in real time to be used for various functions inside the material. The only time-related node that is available within the material blueprint, Time, is useless, as it does not have anything to do with real time, but instead being useful for things like UV panning or sines. After trying to find a solution online, I have found vague mentions of being able to have another blueprint feed the material various things, including system time. How do I do this?
asked Dec 16 '18 at 05:07 PM in Rendering
I think the first option that @redbox tried to say is this;
Create a Blueprint Actor; On EventBeginPlay (or any other event that suit for you) you create a dynamic material instance, then push from the Return Value a Set Scalar Parameter (or any other parameter that you want to set), then you get the Get Real Time Seconds and plug into the value of the parameter node. Remember to write correctly which parameter you want to set (image below):
answered Dec 18 '18 at 06:11 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here