Still not working. Return 0 again.
I want to use mosue wheel to control camera zoom in/out ,but the the lerp node always return 0.Default TargetArmLength is 4096, MaxArmLength is 4096 ,MinArmLength is 1024.
Anyone can help me to fingure out this?
Here are my blueprint and my timeline.
Where are you getting zero?
The Alpha value output from timeline is correct, but the return value of lerp is always 0.
Put min and max arm length the other way around
Take out the branches and DoOnce, then connect to the play and reverse pins. Should do it…
Thanks a lot. I set the values directly, it’s working now.
Do you know why it’s not working with the variable？
I created these two variables and set their default value to 4096 and 1024，then connect them to the lerp node.
I think because you had the variables the wrong way around ( or the names were anyway… )
Yes, but the low one has to go in A.
Sorry, yeah, it should work either way… Did you initialize the variables?
Yes. I initialize the variables with event begin node.
Yes. Both BeginPlay and their defaults
Do you mean BeginPlay? Did you try setting their defaults in the details panel?
You have a small mistake in your code somewhere, maybe post the whole lot.
If there was a bug here, the entire world would know about it
We’ve made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.