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

46 行
1010 B

using System.Linq;
using UnityEngine.Graphing;
namespace UnityEngine.MaterialGraph
{
public class MaterialGraphAsset : ScriptableObject, IMaterialGraphAsset
{
[SerializeField]
private MaterialGraph m_MaterialGraph = new MaterialGraph();
public IGraph graph
{
get { return m_MaterialGraph.currentGraph; }
}
public MaterialOptions options
{
get { return m_MaterialGraph.materialOptions; }
}
public bool shouldRepaint
{
get { return graph.GetNodes<AbstractMaterialNode>().OfType<IRequiresTime>().Any(); }
}
public ScriptableObject GetScriptableObject()
{
return this;
}
public void OnEnable()
{
graph.OnEnable();
}
public Material GetMaterial()
{
return null;
}
public void PostCreate()
{
m_MaterialGraph.PostCreate();
}
}
}