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"

UMG Slider not clamping

Hey seems like a dumb issue but I've been working on a project that involves a day and night cycle for a small city. I've created the day and night cycle to work on the slider but can't figure out how to clamp the slider so the top is Day and the Bottom is night.

If I click and drag the circle on the slider it continues to loop through the day and night cycles even when the mouse is past the lowest point on the bar.

It seems like no matter what number I set the clamp to it continues to cycle to it continues past the number. alt text

[1]: /storage/temp/264862-ue0.png

Product Version: UE 4.21
ue1.png (39.6 kB)
more ▼

asked Jan 10 '19 at 04:06 PM in Using UE4

avatar image

28 1 3

avatar image the_batch Jan 10 '19 at 04:50 PM

Can you share a bit more about how that widget blueprint is set up? Based on the screenshot you shared, I can't see any issues, which means the problem is probably hiding elsewhere.

avatar image mueezkh Jan 10 '19 at 05:04 PM

Yeah sure, I've just created a simple cast that calls the BP_Sky_Sphere and the Directional Light that's in the current level. Added a local rotation.

The cycle works, It just isn't clamping to the correct range. I've attached the full blueprint:

![alt text][1]

This is all in the graph editor for the UMG UI [1]: /storage/temp/264873-ue3.png

ue3.png (166.9 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

It looks like your issue is caused by the use of the Add Actor Local Rotation node, which is going to continuously add more and more rotation to your light every time it is called up.

I think what you need is the Set Actor Rotation node, or perhaps the Set Actor Relative Rotation node if you want to keep the light's rotation relative to its parent.

Give one of those a shot and let me know if you're still having the issue.

more ▼

answered Jan 10 '19 at 05:57 PM

avatar image

1.2k 4 5 8

avatar image mueezkh Jan 10 '19 at 06:08 PM

Heyy! Thanks so much works like a charm!

(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