using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace GraphProcessor
{
///
/// Group the selected node when created
///
[System.Serializable]
public class Group
{
public string title;
public Color color = new Color(0, 0, 0, 0.3f);
public Rect position;
public Vector2 size;
///
/// Store the GUIDs of the node in the group
///
/// GUID of a node
///
public List< string > innerNodeGUIDs = new List< string >();
// For serialization loading
public Group() {}
///
/// Create a new group with a title and a position
///
///
///
public Group(string title, Vector2 position)
{
this.title = title;
this.position.position = position;
}
///
/// Called when the Group is created
///
public virtual void OnCreated()
{
size = new Vector2(400, 200);
position.size = size;
}
}
}