Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Persistance in Tiny?

Discussion in 'Project Tiny' started by Revolter, Feb 16, 2019.

  1. Revolter

    Revolter

    Joined:
    Mar 15, 2014
    Posts:
    216
    How would one save player's progress? Is there something similar to PlayerPrefs or, if I'm targeting Facebook messenger, should I use their API?
     
  2. chrishawkins

    chrishawkins

    Joined:
    Jan 27, 2018
    Posts:
    1
    If you're targeting Instant Games you can use
    FBInstant.player.setData
    and
    getData
    wrapped in your own fallback methods for use outside of Instant Games.

    For outside Instant Games, might be worth looking into the Web Storage API.
     
  3. Revolter

    Revolter

    Joined:
    Mar 15, 2014
    Posts:
    216
    Thanks, this is exactly what I need, I'll use the FBInstant calls.
    Outside Instant Games do you mean in the Editor? Can we still use conditional #IF operators in Unity Tiny the same way as in normal Unity?