An easy to use Unity 3D library for creating illustrated Interactive Fiction games and more.

27 lines
666 B

using UnityEngine;
using UnityEditor;
using Rotorz.ReorderableList;
namespace Fungus.EditorUtils
{
[CustomEditor (typeof(SaveData), true)]
public class SaveDataEditor : Editor
{
protected SerializedProperty flowchartsProp;
protected virtual void OnEnable()
{
flowchartsProp = serializedObject.FindProperty("flowcharts");
}
public override void OnInspectorGUI()
{
serializedObject.Update();
ReorderableListGUI.Title("Flowcharts");
ReorderableListGUI.ListField(flowchartsProp);
serializedObject.ApplyModifiedProperties();
}
}
}