Files

19 lines
459 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace AYellowpaper.SerializedCollections
{
public class SerializedDictionarySampleTwo : MonoBehaviour
{
[SerializedDictionary("ID", "Person")]
public SerializedDictionary<int, Person> People;
[System.Serializable]
public class Person
{
public string FirstName;
public string LastName;
}
}
}