Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter krghost

    (@krghost)

    @pthowe ok so you mean that sending it through shortcode might work?
    I’ll definitely give it a try.
    Please update if you find out something and I’ll do the same too.

    Thanks

    Thread Starter krghost

    (@krghost)

    @pthowe the data I want to pass is simply a string that is the user Id of the user logged into the website.

    Thread Starter krghost

    (@krghost)

    Hey @pthowe any update?
    any feedback (whether possible or not) will be highly appreciated.

    Thanks

    Thread Starter krghost

    (@krghost)

    @pthowe , so is there no way to get the browser and Unity3d to communicate directly? Rather than going through an API?
    I mean like “sendMessage()” function in JS

    • This reply was modified 5 years, 3 months ago by krghost.
    Thread Starter krghost

    (@krghost)

    Great

    So my level editor is a stand-alone (i.e a separate WebGL build apart from the game).
    The level will be like a chessboard where the level creator will put predefined NPCs on the squares. There will be a limited number of NPCs with id 1 to n. One of these NPC will be placed on each square on the board.
    That is the whole level.

    To add it into the database when the creator submits, I simply create a (2 x 2)JSON of the current board with the NPC id as a value and then push the JSON into the Level creator’s account.

    Now here, the Level JSON info is in the unity WebGL and the user info is on the web browser.
    I somehow have to bring them together and push them into the database.

    Your help would be greatly appreciated
    Thank you for your prompt reply

    Thread Starter krghost

    (@krghost)

    I am new to using webgl on wordpress so sorry if the question seems naive.
    I wanted to know how to use function like sendMessage() here in this plugin.
    Is it callable? If yes, how?. Where do I write it?

    I am making a level editor where user will create a level for the game and then upload the level data to firebase database.
    Initially, I was thinking of retrieving the level data from unity webgl to the browser and then pushing it to the database as I need the user detail present on the website to push it into the database but I think there is no way to do so.

    So I was thinking of sending the user details to unity webgl from the browser (through a function like sendMessage()) and from unity I’ll push the game data into the database

    So is there any way to do either of those mentioned above
    I am using unity 2019.4

    Thank you for your quick reply

Viewing 6 replies - 1 through 6 (of 6 total)