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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Two windows in a program


I need to make a program with two windows: the first window (main) where the player could walk around the level and the second window, where I could change the position of the actors in runtime (some kind of room planning app)

Is it possible to realize in UE4?

with best regards,


Product Version: UE 4.8
more ▼

asked Jul 24 '15 at 10:29 AM in C++ Programming

avatar image

38 2 3 9

avatar image hwray Apr 25 '16 at 08:10 PM

Curious about this as well...

avatar image wangchao719 Dec 14 '16 at 08:25 AM

How can I just want a left top small main window in full screen mode (other place are all black)

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

3 answers: sort voted first

It is possible as editor does that, it seems it quite easy to be done with Slate, you create window first which you need to do with this function:


You can get rederer via this: FSlateApplication::Get().GetRenderer()

Window is also widget SWindow: https://docs.unrealengine.com/latest/INT/API/Runtime/SlateCore/Widgets/SWindow/index.html

Inside windows you place SViewport: https://docs.unrealengine.com/latest/INT/API/Runtime/Slate/Widgets/SViewport/index.html

If you have 0 idea about Slate, it is engine UI system initially made for editor, but it also can power gameplay UI (for example UMG is blueprint front end of Slate), here link for good starting resource:

https://docs.unrealengine.com/latest/INT/Programming/Slate/index.html https://wiki.unrealengine.com/Slate,_Hello This can be helpful to as it shows some slate stuff: https://www.youtube.com/watch?v=zg_VstBxDi8

In the first function i give you as SWindow aregument you use SNew(SWindow) or better SAssignNew(MyWindowVarable,SWindow), as for argument functions you look up FArgument sub class in API refrence usally in bottom, but i give oyu links for SViewport and SWindow

https://docs.unrealengine.com/latest/INT/API/Runtime/SlateCore/Widgets/SWindow/FArguments/index.html https://docs.unrealengine.com/latest/INT/API/Runtime/Slate/Widgets/SViewport/FArguments/index.html

Slate is weakly documented so ultimate example resource for is engine source code it self aspecially editor code, but no worries Slate works outside editor (it needs to power UMG anyway) so as long as you dont call any editor code you are ok.

more ▼

answered Apr 26 '16 at 12:15 AM

avatar image

36.6k 931 169 1111

avatar image kefka321 Jun 02 '16 at 01:45 PM

Hey Shadowriver,

i am extremely interested in this too. Could you give me some short example code which extends the unreal engine and just adds a new window without any content but which is shown? That would be really nice of you.

Thanks in advance and best regards.

avatar image KnightArchitects Sep 21 '16 at 08:24 AM

I was looking into this as well and here is what I have ended up with:

 SlateWin = SNew(SWindow)
     .Title(FText::FromString(TEXT("Control Window")))
     .ScreenPosition(FVector2D(0, 0))
     .ClientSize(FVector2D(500, 800))
 TSharedRef<SWindow> SlateWinRef = SlateWin.ToSharedRef();
 FSlateApplication & SlateApp = FSlateApplication::Get();
 SlateApp.AddWindow(SlateWinRef, true);

This creates and displays a basic window that you can place slate stuff into. Thanks to Shadowriver for the pointers!

avatar image thecr3w Mar 18 '17 at 06:08 PM

Thanks for this code snippit!

For other newbies like me: Just keep in mind the "SControlWidget" is your own content for your new widget. SControlWidget is no Class of Unreal. You have to define it yourself.

avatar image sgtDrew Feb 14 '19 at 08:36 AM

I need to create, fundamentally, a separate window in which there will be a widget with buttons (something like a control panel). I create the second separate window SWindow in which I place the widget. When you press a button on the widget, the game stops, when button it is released - game continues. If this widget is placed in the main window, this does not happen. Is it possible to overcome it? And what can it be connected with?

avatar image sgtDrew Feb 14 '19 at 10:05 AM

I excusal. The problem was only when you run through the "PLAY". If run through the "LAUNCH" then neither does not freeze and does not stop

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

I made some plugin, maybe it can help you https://github.com/Batname/SpectatorWindow

more ▼

answered Oct 28 '17 at 09:15 PM

avatar image

56 4 4

avatar image CrashAngel Mar 16 '18 at 03:20 AM

Hi, i trying Build this plugin in 4.19 and receive erros....

I would love to be able to use this plugin ... can you take a look without a code, please?

avatar image flarion Mar 16 '18 at 09:30 AM


I recently upgraded the project to 4.18.3 (pull request is waiting). You can find it here: https://github.com/fweidner/SpectatorWindow

Best, F

avatar image CrashAngel Mar 16 '18 at 05:21 PM

Hi, i Receive this error in this line when Build

R_MotionController->Hand = EControllerHand::Right; (No member named member in hand in UmotionControllerComponent)

avatar image CrashAngel Mar 17 '18 at 01:08 AM

Hi, i Build the project... More When I Package i receive this message: Could not find SuperStruct MV_UserWidget to create BP_MV_UserWidget_C

could you tell me where I can change?

This variable is Protected and i change to Public more no effect...

avatar image intrus03 Mar 29 '18 at 11:02 PM

Hi Denis

Is it possible with SpectatorWindow render from a render target instead of draw from frame buffer? If it is posible how can I do it?

Thank you in advance.

avatar image DenisDubinin Feb 14 '19 at 11:16 AM

Hello, I'm working on a new solution for it for one of our customers, I'll share some code later on. about 1 month. Contact me by dennis at geodesic.games or follow our website if I won't put an update here in one month http://www.geodesic.games/


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

answered Mar 02 '19 at 07:53 PM

avatar image

56 4 4

(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