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.

28 lines
810 B

3 years ago
using System;
using TNode.Attribute;
3 years ago
using UnityEngine;
3 years ago
namespace TNode.Models{
3 years ago
/// <summary>
/// this class is used to store the data of a node
/// inherit it to implement your own node
/// when declare a port for this node,you can use attribute [PortTypeName] on a field to claim a port.a port will not be inspected by default inspector.
/// fields that are not marked with [PortTypeName] will be inspected by default inspector.
///
/// </summary>
3 years ago
[Serializable]
public class NodeData{
3 years ago
public NodeData() : base(){
//Object Registration
3 years ago
}
[DisableOnInspector]
public string id;
3 years ago
public string nodeName;
public bool entryPoint;
3 years ago
// #if UNITY_EDITOR
// public Rect rect;
// #endif
3 years ago
}
}