using System; using System.Collections.Generic; using UnityEngine; namespace UnityEditor.ShaderGraph { [Serializable] struct GeneratedFunction { public string name; public string code; } class SubGraphDatabase : ScriptableObject { public static SubGraphDatabase instance { get { if (s_Instance == null) { s_Instance = AssetDatabase.LoadAssetAtPath(SubGraphDatabaseImporter.path); } return s_Instance; } set => s_Instance = value; } static SubGraphDatabase s_Instance; public List subGraphs = new List(); public List subGraphGuids = new List(); public List functionNames = new List(); public List functionSources = new List(); } }