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"

Prevent Other Vive app from Closing Editor

I'm looking to prevent other Vive VR apps from closing the editor or packaged game. In normal function launching another vive app will kill your editor. Does this require a source modification or do we have something exposed that prevents this from occuring?

see relevant for unity: https://steamcommunity.com/app/358720/discussions/0/365163537813276228/

Edit: Added a pull request to the engine here: https://github.com/EpicGames/UnrealEngine/pull/2641

This new IHeadMountedDisplay optional function LoadHMD(bool) solves the case of knowing when you launch the other app and preventing it from closing the editor/game.

Product Version: UE 4.12
more ▼

asked Jul 27 '16 at 08:08 PM in VR

avatar image

716 36 13 42

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

1 answer: sort voted first
more ▼

answered Jul 27 '16 at 08:32 PM

avatar image

71 1 4 14

avatar image getnamo Jul 27 '16 at 09:16 PM

Relevant; though it doesn't crash anymore (seems the editor respects the FPlatformMisc::RequestExit) it still closes and this is not the desired behavior.

avatar image enrique.delta3 Jul 28 '16 at 11:45 AM

Exactly, btw the threads i posted are even for Crash/Close behavior. They happen either one, but one of those two for sure. To me, it just close :(

avatar image getnamo Jul 28 '16 at 08:50 PM

After digging deeply through the source and trying a few things found something that worked for my purposes, but it requires source modification. Essentially you can unload the openvr module, launch the other app and return then reload the openvr link, it's just a few lines of code. Will post a link to a repo for that one.

Edit link to commit that fixes it for the engine: https://github.com/getnamo/UnrealEngine/commit/d28f4fec5fe6b75b87b36fa8ff2ef8113a4fface and pull request: https://github.com/EpicGames/UnrealEngine/pull/2641

To have it so that any app won't close your app, we'd need to intercept the RequestExit, ignore it and unload the module instead, then listen to openvr until it's done with the app and reload the module. That is a bit more complicated of a workaround.

avatar image MediaMike Jan 09 '17 at 07:35 PM

These links seem to be broken? I was looking for the same functionality so I could build a custom VR game launcher.

avatar image getnamo Mar 17 '17 at 02:33 PM

You need to have github access to the epic repository to see these links: https://www.unrealengine.com/ue4-on-github

(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