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

28 行
587 B

using System;
using System.Collections.Generic;
using UnityEngine;
namespace RMGUI.GraphView
{
[Serializable]
public abstract class GraphViewDataSource : ScriptableObject, IGraphElementDataSource
{
[SerializeField]
private List<GraphElementData> m_Elements = new List<GraphElementData>();
public IEnumerable<GraphElementData> elements
{
get { return m_Elements; }
}
public void AddElement(GraphElementData element)
{
m_Elements.Add(element);
}
public void RemoveElement(GraphElementData element)
{
m_Elements.RemoveAll(x => x == element);
}
}
}