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"

Opening SWebBrowser widget steals focus


I try to open a SBrowserWidget in the scene so that it covers only part of the scene. I would like the player to do normal actions, i.e. use controls, while the browser widget is open. However, when I open the browser, it seems to steal the input focus, and I havent found a method to make it "modeless".

I open the browser like this:

 void AStandardHUD::BeginPlay()
     SlateBrowserWidget = SNew(SWebBrowser)
         .OnUrlChanged(BIND_UOBJECT_DELEGATE(FOnTextChanged, HandleOnUrlChanged));
         SNew(SWeakWidget).PossiblyNullContent(SlateBrowserWidget.ToSharedRef())    );
     FVector2D scale_size;
     scale_size.X = 0.25;
     scale_size.Y = 0.25;
     // Set widget's properties as visible (sets child widget's properties recursively)

I have studied the widget class hierarchy, but there is no obvious way to yield the focus to actual gameplay.

How to solve?

Product Version: UE 4.21
more ▼

asked Mar 08 '19 at 10:40 AM in C++ Programming

avatar image

17 4 4 9

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

1 answer: sort voted first

I noticed that different visibility setting solves the problem, at least in my case.


Do you come up with issues regarding this solution, or have a better proposal?

more ▼

answered Mar 08 '19 at 12:14 PM

avatar image

17 4 4 9

(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