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"

Smooth Lerp widget Text between random colors?

I'm having trouble figuring this out. There is no timeline in the Widget editor. I tried the linear color lerp but that gives an instant change. I set up a makeshift timer to delay the calls to avoid 1call/tick. But that just delays the call and the lerp is instant.

I want to make the function bound to the text widget slowly interpolate between random colors at a particular rate. Smoothly, not instantly. I tried generating a clamped 0-1 Alpha, but that didn't really help me cuz it basically adjusts the opacity, not the rate.

I'm aiming for something like a flowing rainbow I suppose?

Here's what I've done so far, not hooked up or anything ATM cuz I can't get the desired behaviour. alt text The Ease function looked promising, but it doesn't take a linear color as an interpolation input. Any ideas? At this point I'm getting either an epilepsy inducing flashing per frame, or a delayed one off change in the color.

Product Version: UE 4.10
Tags:
more ▼

asked Mar 29 '16 at 08:23 PM in Blueprint Scripting

avatar image

Kensei
84 17 23 22

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

1 answer: sort voted first

I figured it out, there are functions called Interps. While Lerp is short for Linear Interpolation, the Interps are smooth interpolations with a rate input.

Stuff like CInterp is for color, while Vinter, Tinterp and Rinterp are for transforms, rotates and meshes. There's also interps for vectors. In the Widget BP though it's hard to get the Delta Time, so it would be wise to get it from another BP.

XInterp to Constant is the same, but instead of easing in-out, it has a constant rate.

Edit: You can get the DeltaTime from a function called "Get World Delta". This will return the current difference in time between frames and is conforming with time dilation. Guess Epic thought of everything :D

more ▼

answered Mar 30 '16 at 03:26 PM

avatar image

Kensei
84 17 23 22

avatar image EP1CSAUC3 Nov 21 '18 at 06:56 AM

Sorry to bump and old post but could you show how you did it?

(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