| 123456789101112131415161718192021222324252627 | 
							- using System.Collections;
 
- using System.Collections.Generic;
 
- using UnityEngine;
 
- using UnityEditor;
 
- using UnityEditor.UIElements;
 
- using UnityEditor.Experimental.GraphView;
 
- using UnityEngine.UIElements;
 
- using GraphProcessor;
 
- [NodeCustomEditor(typeof(MultiAddNode))]
 
- public class MultiAddNodeView : BaseNodeView
 
- {
 
- 	public override void Enable()
 
- 	{
 
- 		var floatNode = nodeTarget as MultiAddNode;
 
- 		DoubleField floatField = new DoubleField
 
- 		{
 
- 			value = floatNode.output
 
- 		};
 
- 		// Update the UI value after each processing
 
- 		nodeTarget.onProcessed += () => floatField.value = floatNode.output;
 
- 		controlsContainer.Add(floatField);
 
- 	}
 
- }
 
 
  |