S
S
Sergey Ivanov2019-05-08 16:37:38
Unity
Sergey Ivanov, 2019-05-08 16:37:38

Unity how to save List?

How to save a List in this format? Here is the script :
List<Item> list = new List<Item>();
Item

using UnityEngine;

[System.Serializable]
public class Item : MonoBehaviour{

    public string Name;
    [Multiline(5)]
    public string Describe;
    public int Count;
    public bool isStacktable;
    public string HandPrefab;
    public string WorldPrefab;
    public string icon;
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question