Unity graph tool solution based on different implementation now focused on Unity.Experimental.Graphview
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Dialogue;
|
|
|
|
|
using UnityEditor.Experimental.GraphView;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace TNode.Models{
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class GraphData:ScriptableObject{
|
|
|
|
|
[SerializeReference]
|
|
|
|
|
public List<NodeData> nodes;
|
|
|
|
|
|
|
|
|
|
[SerializeReference]
|
|
|
|
|
public List<NodeLink> nodeLinks;
|
|
|
|
|
[HideInInspector]
|
|
|
|
|
[SerializeReference]
|
|
|
|
|
public NodeData entryNode;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|