Search Unity

Viewing either HTML or PDF in Unity on Oculus Go

Discussion in 'AR/VR (XR) Discussion' started by NotQuiteSmith, Sep 18, 2018.

  1. NotQuiteSmith

    NotQuiteSmith

    Joined:
    Oct 27, 2013
    Posts:
    92
    Hi,
    There are some assets that allow you to view a web page (e.g. Embedded Browser https://assetstore.unity.com/packages/tools/gui/embedded-browser-55459) or a PDF document (e.g. PDF Renderer https://assetstore.unity.com/packages/tools/gui/pdf-renderer-32815) but these have issues on either 2018.2+ or they don't work on Android (Oculus Go).

    Are there any other solutions? I could render to image but then you can't resize the view (so it's a last resort for me).

    There's a perfectly good browser built into the Go! Can we access that from Unity for use in an app?

    I think this is all a MASSIVE oversight - the display of html/pdf is fundamental to use in business applications! If VR is to gain traction in that space, we need this!

    Thanks for any help!
     
  2. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    21,203
    Nothing that exists as a readymade solution. A quick search turned up the following source code with the only requirement being .NET 2.0 or higher. You would basically just have to build the appropriate front end for Unity.

    https://github.com/ArthurHub/HTML-Renderer
     
    Last edited: Sep 18, 2018
    JoeStrout likes this.
  3. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    In fact if that were polished up and made Unity-savvy (with proper UnityEvent hooks for when links are clicked etc.), it would make a nice asset for the Asset Store.
     
  4. NotQuiteSmith

    NotQuiteSmith

    Joined:
    Oct 27, 2013
    Posts:
    92
    Thanks - I'll take a look at that!