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.

25 lines
626 B

using System.Collections.Generic;
using System.Runtime.InteropServices;
using TNodeCore.Runtime;
using TNodeCore.Runtime.Attributes;
using TNodeCore.Runtime.Attributes.Ports;
using TNodeCore.Runtime.Models;
using UnityEngine;
namespace Samples{
[GraphUsage(typeof(HelloGraph),"Math")]
public class AddNode:NodeData{
[Input]
public Vector3 A{ get; set; }
[Input]
public Vector2 B{ get; set; }
[Output]
public Vector3 Res{ get; set; }
public override void Process(){
Res = A + (Vector3)B;
this.Log($"{Res}");
}
}
}