Giter Site home page Giter Site logo

Comments (14)

ManlyMarco avatar ManlyMarco commented on May 13, 2024

Check if it shows up on the desktop preview. The game needs to have IMGUI view enabled in some way for it to work, either as desktop-only or rendered to a camera. A lot of games are probably not going to have anything set up here.

from runtimeunityeditor.

v0idp avatar v0idp commented on May 13, 2024

I did check the desktop preview. sadly no menu in there either

from runtimeunityeditor.

andrewpros avatar andrewpros commented on May 13, 2024

Anyone found a solution? I do know the UnityExplorer plugin somehow, but works.

from runtimeunityeditor.

ManlyMarco avatar ManlyMarco commented on May 13, 2024

UnityExplorer is visible because it uses a canvas for its interface instead of imgui.

from runtimeunityeditor.

andrewpros avatar andrewpros commented on May 13, 2024

Hmm, im not into the internals that much, does that mean the plug-in OnGUI and Update needs to work? And some games will just not call OnGUI?

from runtimeunityeditor.

ManlyMarco avatar ManlyMarco commented on May 13, 2024

The issue is that there is nothing to draw the UI to. I believe it's not possible to draw directly in the VR view, but it is possible to draw to the desktop preview camera and to a texture. I used the second way to enable plugins using OnGUI to be visible in VR on the desktop view tool in this mod https://github.com/IllusionMods/KKS_VR, but it relies on OpenXR which won't help here. I have some games that come with the first version working out of the box too, so it's definitely possible, I think it's a camera mask issue in this case.

from runtimeunityeditor.

andrewpros avatar andrewpros commented on May 13, 2024

Well ok, i guess legacy unity GUI is outdated anyway, that why it wont work with vr and there not much to do about it.

from runtimeunityeditor.

v0idp avatar v0idp commented on May 13, 2024

from my knowledge it is possible to draw imgui elements into VR. there is actually a fork of imgui for vr called imguivr or something which allows you to draw imgui overlays in all vr games. it uses openVR.

github: https://github.com/temcgraw/ImguiVR
demo: https://www.youtube.com/watch?v=nlwfn4HJw5E

from runtimeunityeditor.

andrewpros avatar andrewpros commented on May 13, 2024

Hmm, are we still talking about the same things and what it has to do with making RuntimeUnityEditor work in vr unity apps?

RuntimeUnityEditor is using unity IMGUI and this has nothing to do with c++ dear imgui.

IMGUI is basically the OnGUI event, at the same time IMGUI does not work with vr and it is kinda obsolete now so it will never in a official way.

But, maybe there is some hack to make it work or at least display on the desktop window without rewriting the whole thing...

Cuz i have heard that some vr games do display it still, but only on the desktop view, but im not sure how this is achieved.

But maybe some hacks are possible, like render the OnGui calls to a texture?

from runtimeunityeditor.

v0idp avatar v0idp commented on May 13, 2024

maybe the texture thing might work, you could draw a plane/cube or whatever into the game and put imgui as a texture on it

from runtimeunityeditor.

andrewpros avatar andrewpros commented on May 13, 2024

Its hard to find any info about it, no one cares really, and as it is legacy ui i wont look for it either, no point probably, it works in the vr app i tested, but op didn't specify what game it was, so i was curious.

from runtimeunityeditor.

v0idp avatar v0idp commented on May 13, 2024

The Game was VirtuosoVR I believe.

from runtimeunityeditor.

andrewpros avatar andrewpros commented on May 13, 2024

Works for me.

from runtimeunityeditor.

v0idp avatar v0idp commented on May 13, 2024

welp then I forgot... sorry

from runtimeunityeditor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.