using System.Collections.Generic; using UnityEngine; namespace BgTools.PlayerPrefsEditor { [System.Serializable] public class PreferenceEntryHolder : ScriptableObject { public List userDefList; public List unityDefList; private void OnEnable() { hideFlags = HideFlags.DontSave; if (userDefList == null) userDefList = new List(); if (unityDefList == null) unityDefList = new List(); } public void ClearLists() { if (userDefList != null) userDefList.Clear(); if (unityDefList != null) unityDefList.Clear(); } } }