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"

Changing ZOrder of virtual joysticks.

How can I change the ZOrder of the default virtual joysticks? I have a UMG Image that is full screen and it's ZOrder is 1 but I have to put the ZOrder to -12 to have control over the virtual joysticks. So I just want to move the virtual joysticks above 10.

Product Version: UE 4.11
more ▼

asked Apr 08 '16 at 02:30 PM in Blueprint Scripting

avatar image

Robinson Company
120 8 17 26

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

1 answer: sort voted first

I think you would have to change the source.

I poked around in the source and found the spot where the viewport widget is added.

Assuming you are on the 4.11.1-release tag, in the file Engine/Source/Runtime/Engine/Private/PlayerController.cpp on change line 1078 from:



         LocalPlayer->ViewportClient->AddViewportWidgetContent(VirtualJoystick.ToSharedRef(), 11);

(11 is the arbitrary number above 10 that I chose)

more ▼

answered Apr 08 '16 at 10:51 PM

avatar image

2.1k 67 84 77

avatar image Robinson Company Apr 09 '16 at 02:58 PM

Thanks! Going to try this now.

avatar image Robinson Company Apr 09 '16 at 05:53 PM

Question, do I have to built UE4 from source for this to work?

avatar image Robinson Company Apr 09 '16 at 08:02 PM

I did what you said but the ZOrder didn't change. I install you UE by the launcher if that means anything.

avatar image CleanCut Apr 10 '16 at 05:58 AM

Yes, you would need to actually compile the engine from the source you modified for this to be able to have any effect.

avatar image Robinson Company Apr 11 '16 at 12:15 PM

Darn. Ok. Thanks for your help. Wish I didn't have to compile.

avatar image DantaliaN00 Jul 03 '18 at 11:10 PM

Just hint: you don't need change engine cpp if you just override virtual void CreateTouchInterface() in your own PlayerController class

(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