您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

41 行
896 B

using System.Linq;
using UnityEngine.Graphing;
namespace UnityEngine.MaterialGraph
{
public class MaterialSubGraphAsset : ScriptableObject, IMaterialGraphAsset
{
[SerializeField]
private SubGraph m_MaterialSubGraph = new SubGraph();
public IGraph graph
{
get { return m_MaterialSubGraph; }
}
public SubGraph subGraph
{
get { return m_MaterialSubGraph; }
}
public bool shouldRepaint
{
get { return graph.GetNodes<AbstractMaterialNode>().OfType<IRequiresTime>().Any(); }
}
public ScriptableObject GetScriptableObject()
{
return this;
}
public void OnEnable()
{
graph.OnEnable();
}
public void PostCreate()
{
m_MaterialSubGraph.PostCreate();
}
}
}