Title: krghost's Replies | WordPress.org

---

# krghost

  [  ](https://wordpress.org/support/users/krghost/)

 *   [Profile](https://wordpress.org/support/users/krghost/)
 *   [Topics Started](https://wordpress.org/support/users/krghost/topics/)
 *   [Replies Created](https://wordpress.org/support/users/krghost/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/krghost/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/krghost/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/krghost/engagements/)
 *   [Favorites](https://wordpress.org/support/users/krghost/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[HoweScape Unity3d WebGL] Retrieve data](https://wordpress.org/support/topic/retrieve-data-3/)
 *  Thread Starter [krghost](https://wordpress.org/support/users/krghost/)
 * (@krghost)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/retrieve-data-3/#post-14120117)
 * [@pthowe](https://wordpress.org/support/users/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
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[HoweScape Unity3d WebGL] Retrieve data](https://wordpress.org/support/topic/retrieve-data-3/)
 *  Thread Starter [krghost](https://wordpress.org/support/users/krghost/)
 * (@krghost)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/retrieve-data-3/#post-14114691)
 * [@pthowe](https://wordpress.org/support/users/pthowe/) the data I want to pass
   is simply a string that is the user Id of the user logged into the website.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[HoweScape Unity3d WebGL] Retrieve data](https://wordpress.org/support/topic/retrieve-data-3/)
 *  Thread Starter [krghost](https://wordpress.org/support/users/krghost/)
 * (@krghost)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/retrieve-data-3/#post-14113165)
 * Hey [@pthowe](https://wordpress.org/support/users/pthowe/) any update?
    any feedback(
   whether possible or not) will be highly appreciated.
 * Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[HoweScape Unity3d WebGL] Retrieve data](https://wordpress.org/support/topic/retrieve-data-3/)
 *  Thread Starter [krghost](https://wordpress.org/support/users/krghost/)
 * (@krghost)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/retrieve-data-3/#post-14093626)
 * [@pthowe](https://wordpress.org/support/users/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](https://wordpress.org/support/users/krghost/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[HoweScape Unity3d WebGL] Retrieve data](https://wordpress.org/support/topic/retrieve-data-3/)
 *  Thread Starter [krghost](https://wordpress.org/support/users/krghost/)
 * (@krghost)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/retrieve-data-3/#post-14088068)
 * 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
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[HoweScape Unity3d WebGL] Retrieve data](https://wordpress.org/support/topic/retrieve-data-3/)
 *  Thread Starter [krghost](https://wordpress.org/support/users/krghost/)
 * (@krghost)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/retrieve-data-3/#post-14080729)
 * 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)