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().OfType().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; } } } }