Hi, there
i’d like to make a creation tool for my project.
it’s a simple [save/load/edit] a data file.
[System.Serializable]
public class Character{
public int id;
public string name;
}
public class Character_Create:EditorWindow{
private List<Character> data = new List<Characer>();
private Character input = new Character();
void OnGUI(){
input.id = EditorGUILayout.IntField ("Character ID", input.id);
input.name = EditorGUILayout.TextField ("Character Name", input.name);
if(GUILayout.Button("Create")){
data.Add(input);
}
}
}
this is my problem.
1)Is there easy way to save/load a List<> in to a file.
and any function to search a member of List<> by using ID to reference ?
2)what if i use Stream Read/Writer on other platform such a android ?
or any idea that can make it easier to build a Database file.
Thankyou.