Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Best way to save data for mobile share and sending exporting to website?

Discussion in 'Editor & General Support' started by Surrealone, Aug 8, 2017.

  1. Surrealone

    Surrealone

    Joined:
    Jul 14, 2017
    Posts:
    2
    Good evening Unity Community! I'm working on my first project, and while most of functions are ready, there's still one thing that I don't understand. Player buys skills using exp points. Skills are pictures that placed on a canvas when purchased. The goals are : 1) to save the following data: purchased skills on the canvas, exp points left untouched; 2) find a way of sharing that data between mobile users, send it to a website automatically when the data is saved.

    The question is: "what save data method to use if I need to achieve the stated goals?" And if, anyone is generous enough to give any tips where to learn it quickly, I would be grateful. I'm really struggling with this one guys, help please, would really appreciate any tips! Thank you in advance! Anton
     
  2. novabyte

    novabyte

    Joined:
    Feb 27, 2015
    Posts:
    12
    @Surrealone It depends on what you mean with "send it to a website automatically when the data is saved". Do you want to display the skills (achievements?) unlocked by players for other players to see on a website? If so you'll need to send the data from the game to a server and database you run online. You can then have the website code read the data and display it from the database.
    If you want to just post about what skills different players have earned somewhere online it'll be easier to use the Facebook SDK and post onto your game's Facebook page. That way it's just a news feed of player activity.
     
  3. Surrealone

    Surrealone

    Joined:
    Jul 14, 2017
    Posts:
    2
    novabyte
    Thank you very much for takin your time on this thread!
    By sending it to a website I mean that every user saves a "Build" or a "skill set" that is presented by purchased skill (indication for skill for being purchased is that they appeared on the special canvas). Besides that when player saves that "Build" he adds a name for it, and that data should then be sent to a server allowing other mobile devices users and website users to browse that build in search.
    The game itself is planned to be on Android, IOS and webplayer.
    Sorry for being unclear, I never did anything related to such tasks before, hope I was able to explain properly.
     
  4. novabyte

    novabyte

    Joined:
    Feb 27, 2015
    Posts:
    12
    @Surrealone I understand what you're looking to achieve now.
    You'll definitely need to setup a database server online and write server code which can be used by both your Android and iOS clients and the WebPlayer. The client code can all be shared of course because you'd build it in Unity. If you've not got any experience working with server code it might be better to look for solutions online which can provide the functionality for you.