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.Runtime.InteropServices;
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using TNode.Attribute;
|
|
|
|
|
using TNode.Attribute.Ports;
|
|
|
|
|
using TNode.RuntimeCache;
|
|
|
|
|
|
|
|
|
|
namespace TNode.Models{
|
|
|
|
|
public class BlackboardDragNodeData<T>:NodeData{
|
|
|
|
|
private string _blackDragData;
|
|
|
|
|
[JsonIgnore]
|
|
|
|
|
private BlackboardData _blackboardData;
|
|
|
|
|
|
|
|
|
|
[Output("",PortNameHandling.MemberType)]
|
|
|
|
|
public T Value => _blackboardData.GetValue<T>(_blackDragData);
|
|
|
|
|
|
|
|
|
|
public BlackboardDragNodeData(){
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|