Announcement

Collapse
No announcement yet.

Question about UI web ingame

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Question about UI web ingame

    Is the ingame web interface a browser? Can it displays for example localhost:3000 or www.google.com?
    Or it just serves the static html/js files in the folder?

    thanks

    #2
    Hey Draziak,

    Yes, the ingame web interface is done through CEF. If you wish to load local files (the one placed within the package), simply set the URL to http://assets/package_name/index.html or which suits you. This can be achieved by creating a WebUI using CreateWebUI
    To load external links such as google.com, you will need to create a WebUI using CreateRemoteWebUI, and loading the URL of your choice.

    Internal URL will be loaded via LoadWebFile, where as external will be SetWebURL.

    More information can be found here: https://dev.playonset.com/wiki/Templ...nctions#Web_UI

    Happy Coding!

    Comment

    Working...
    X