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"

Why HitBoxBeginCursorOver worked only when pressed button on mouse?

Here is my script to draw two pictures, depending on hovered HitBox by mouse or not. And it's work only when i hold on mouse button.What should i do,to make this work only on hovering?Without pressing button? alt text

Product Version: UE 4.12
Tags:
111.png (376.2 kB)
more ▼

asked Aug 25 '16 at 02:51 PM in Blueprint Scripting

avatar image

Rusbaron
24 6 6 8

avatar image Rusbaron Aug 25 '16 at 08:16 PM

Anyone? Is it bug?

avatar image Rusbaron Aug 28 '16 at 09:12 PM

Done with more easier way, widget button

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

1 answer: sort voted first

Have you tried naming your hit box and only changing your variable if the box with that name gets cursor over? Perhaps there are other hit boxes that also fire the event.

more ▼

answered Aug 25 '16 at 09:30 PM

avatar image

CleanCut
2.1k 67 84 77

avatar image Rusbaron Aug 26 '16 at 11:34 AM

Hmm.I will try I have only one HitBox.And as i see there is a problem with order of created object.If i place hitbox in other place it works(but strange,if mouse over it create one thick and after that not working,so why i need to use variable) So problem with hitbox order.

avatar image Rusbaron Aug 26 '16 at 11:38 AM

And could you explain me,how i can bind 2 events(BeginCursorOver and EndCursorOver) to one HitBox? I can bind Box Name from one event to HitBox, and second event just replace.... And is there any event,like this,but that working while mouse over object? Becouse i just need to replace picture on hud,where mouse is over it.Or my way with setting variable is only one right way?

avatar image CleanCut Aug 26 '16 at 07:23 PM

You may just want to use a widget instead. Then you can just bind the OnHover and OnUnhover events on the widget.

avatar image Rusbaron Aug 27 '16 at 01:05 PM

thks,i will try.

(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