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"

[Slate-FHittestGrid] Can someone explains about comment in source code?

I was analyzing the slate input system. and I've faced the comment which i couldn't understand why.

HittestGrid.cpp - Line No. 691, 692

// When performing a point hittest, accept all hittestable widgets.

// When performing a hittest with a radius, only grab interactive widgets.

can someone explains why this was necessary? when slate system finds appropriate widget that has hitted by cursor(or pointer), first look it up exact cursor point at that time you guys not check widget's IsInteractable() method. and after that it is not checked you guys do check widgets inside cursor's radius, but this time checks IsInteractable() I wonder what reason makes this behavior difference. Isn't that check widget's IsInteractable() in every case would be simpler and more robust? there are any reason behind that I couldn't find out?

I try to understand why and I have spend times to look it up other code around but i couldn't find a reason. can someone internal who knows history of this explains to me??

Product Version: UE 4.21
Tags:
more ▼

asked Feb 13 '19 at 01:50 PM in C++ Programming

avatar image

hihig
1 1

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

1 answer: sort voted first

now i understand what's happening. in case who stumbled the same question, i leave my understanding.

1st of all point hittest accepts all hittestable widgets not just interactable. so it gets hittestted widget and if there are any interactable widget in parent hierarchy of hitted widget, it accepted. this thing makes many of widget is working based on parent widget's event handling. and next hittest with radius there are many other candidate which is not directly hitted by, so they just prioritized interactable widget, because there will be many candidates. i don't know this will gives better cognitive institution, but this is how it made up i guess.

more ▼

answered Feb 26 '19 at 07:17 AM

avatar image

hihig
1 1

(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