Search Unity

Click button on html page to spawn an object into unity webplayer game

Discussion in 'Scripting' started by kityanlam3, Jun 24, 2016.

  1. kityanlam3

    kityanlam3

    Joined:
    Feb 2, 2016
    Posts:
    41
    I'm a bit new to webplayer games so the interaction between the game and the html page is foreign to me. I have a webserver with an .obj object stored inside of it and my html page has a button.

    When I click on the page button I want to spawn the furniture object into the game, the better option would be drag and dropping it into the webplayer game but I've read that it's not possible yet (Can someone confirm this?)

    I want to know if it's possible to do so and what are the steps to go about doing this. I have already done something similar in unity, using directory urls to load .obj objects and in-game buttons to spawn them. Thanks for any advice!