您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
39 行
999 B
39 行
999 B
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<SubGraphDatabase>(SubGraphDatabaseImporter.path);
|
|
}
|
|
return s_Instance;
|
|
}
|
|
set => s_Instance = value;
|
|
}
|
|
|
|
static SubGraphDatabase s_Instance;
|
|
|
|
public List<SubGraphData> subGraphs = new List<SubGraphData>();
|
|
|
|
public List<string> subGraphGuids = new List<string>();
|
|
|
|
public List<string> functionNames = new List<string>();
|
|
|
|
public List<string> functionSources = new List<string>();
|
|
}
|
|
}
|