Search Unity

Question How do I archive GameItem?

Discussion in 'Game Foundation' started by HG_China, Feb 20, 2020.

  1. HG_China

    HG_China

    Joined:
    May 17, 2019
    Posts:
    5
    "Game Items are generated from Game Item Definitions and keep track of any data which you want to persist across sessions, or even temporary data that only exists at runtime. " -- from Key concepts of GameFoundation manual.

    But you didn' tell us how to make a GameItem persist across sessions.

    And please don't delete my thread again.

    When will the new version release?
     
  2. mingz-unity

    mingz-unity

    Unity Technologies

    Joined:
    Oct 12, 2017
    Posts:
    63
    Thanks for reaching out to us @hanguang1985 -

    Sorry to hear that your earlier post went away. We reached out to forum admin and was told the reason for that post deletion was because it has only one line in the post content which is the same as title. We do appreciate you coming back and post again.

    Now here's the answer to your question on GameItem persistence: if you start with defining a GameItem, make sure you also create an inventory item, to get data persistence working out of the box. Today we don’t support persistence directly on GameItem yet (but have noted your use case and will consider that in future). Do recognize the key concept we described in the doc may be misleading in this case, and we'll update that for the next release.

    For your question on the next version: we actually just released a new version yesterday. Will keep frequent releases and improve Game Foundation.

    Thanks for your question and feedback.
     
    Last edited: Feb 21, 2020