How to Save Data in Unity - Binary Serialization - 2022

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 พ.ย. 2024

ความคิดเห็น • 21

  • @chengyuanguo728
    @chengyuanguo728 2 ปีที่แล้ว +4

    Thx for the legendary videos you made. You are really amazing bro ! Please keep making such tutorials ! 😍

    • @Flarvain
      @Flarvain  2 ปีที่แล้ว

      Glad it was useful for you chengyuan, welcome to the channel :)

  • @Kouly-Productions
    @Kouly-Productions 2 ปีที่แล้ว +2

    Good explainer, UI Designer, programmer and he can draw. AMAZING! Thanks for all your amazing Tutorials! :D

    • @Flarvain
      @Flarvain  2 ปีที่แล้ว

      Way too kind! I can take credit for all of that except the drawing haha. Using a software for that one :)

  • @LIDOGAMES
    @LIDOGAMES 2 ปีที่แล้ว +1

    best binary video on TH-cam 😉

    • @Flarvain
      @Flarvain  2 ปีที่แล้ว

      Thanks waleed. Glad it was useful, welcome to the channel :)

  • @JFroggo-Gaming
    @JFroggo-Gaming ปีที่แล้ว +1

    Such a good tutorial man! Thank you ery much!

    • @Flarvain
      @Flarvain  ปีที่แล้ว

      Thanks mate, welcome to the channel!

  • @gamesfordlegend
    @gamesfordlegend ปีที่แล้ว +1

    wow very beautiful, i enjoyed it from the beginning, but i need little help, how do i make the script save on auto and load on game launch

    • @Flarvain
      @Flarvain  ปีที่แล้ว

      Hey there, glad you enjoyed it. Theres many ways you could approach it. A simple example would be to have a game manager script and in that script add a bool for isLoaded. On start check if the playerpref key exists for your save file and if it does, then call your load function, then set isLoaded to true. You can then put your game logic behind an isloaded check, or if your familiar with listener events you can have it listen for that.
      If you dont have a playerpref yet then set ioaded to true and itll also start the game when you havent got a save.
      On exit i think unity has an OnApplicationQuit, but i cant quite remember. Id recommend looking at the documentation to find that :)

  • @fedejure7445
    @fedejure7445 2 ปีที่แล้ว +2

    Hi there! I have a question regarding gpgs on unity. I finally got everything working but now is failing when I upload the app to store. Can you help me with that?

    • @Flarvain
      @Flarvain  2 ปีที่แล้ว +1

      Hi there Fede, what kind of error message is it giving when you upload it to the store

    • @fedejure7445
      @fedejure7445 2 ปีที่แล้ว

      Hey! Ty for answer. No, im having not authorized error on Authentication. Its working fine from local build but installed from store its failing. What I tried is to create again all the oauth tokens and Im waiting to app to be approved again

  • @nazar2383
    @nazar2383 ปีที่แล้ว +1

    bro your videos are just golden info, it saved me a ton of nerves and time. Keep going! Like and sub from me!

    • @Flarvain
      @Flarvain  ปีที่แล้ว

      Thanks Nazar, great to hear good feedback!

  • @VOXindie
    @VOXindie 6 หลายเดือนก่อน +1

    You're not supposed to use BinaryFormatter anymore.

  • @dido3d36
    @dido3d36 2 ปีที่แล้ว +2

    how to detect device is mobile and make it work as per device (android)

    • @Flarvain
      @Flarvain  2 ปีที่แล้ว +1

      Binary saving will work the same on android without any extra changes to the code.

  • @UnofficialCyane
    @UnofficialCyane 4 หลายเดือนก่อน

    the binaryformatter poses a security risk and it is stronly advised not to use it

  • @googleuser4720
    @googleuser4720 5 หลายเดือนก่อน

    Use Unity Services Cloud Saves and async operations. Thank me later. Don't watch the video