您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
33 行
781 B
33 行
781 B
using System.Linq;
|
|
using UnityEngine.Graphing;
|
|
|
|
namespace UnityEngine.MaterialGraph
|
|
{
|
|
public abstract class AbstractMaterialGraphAsset : ScriptableObject, IMaterialGraphAsset
|
|
{
|
|
public abstract IGraph graph { get; }
|
|
|
|
public bool shouldRepaint
|
|
{
|
|
get { return graph.GetNodes<AbstractMaterialNode>().OfType<IRequiresTime>().Any(); }
|
|
}
|
|
|
|
public ScriptableObject GetScriptableObject()
|
|
{
|
|
return this;
|
|
}
|
|
|
|
public void OnEnable()
|
|
{
|
|
graph.OnEnable();
|
|
}
|
|
|
|
[SerializeField]
|
|
private GraphDrawingData m_DrawingData = new GraphDrawingData();
|
|
|
|
public GraphDrawingData drawingData
|
|
{
|
|
get { return m_DrawingData; }
|
|
}
|
|
}
|
|
}
|