using UnityEngine;
namespace XNode
{
/// Lets you instantiate a node graph in the scene. This allows you to reference in-scene objects.
public class SceneGraph : MonoBehaviour
{
public NodeGraph graph;
}
/// Derive from this class to create a SceneGraph with a specific graph type.
///
///
/// public class MySceneGraph : SceneGraph
/// {
/// }
///
///
public class SceneGraph : SceneGraph where T : NodeGraph
{
public new T graph
{
get => base.graph as T;
set => base.graph = value;
}
}
}