using UnityEngine; using UnityEditor.Experimental.UIElements.GraphView; using UnityEditor.Experimental.UIElements; using UnityEngine.Experimental.UIElements; using System.Collections; using System.Collections.Generic; namespace GraphProcessor { public class CommentBlockView : Group { public BaseGraphView owner; public CommentBlock commentBlock; Label titleLabel; ColorField colorField; public CommentBlockView() { AddStyleSheetPath("GraphProcessorStyles/CommentBlockView"); } public void Initialize(BaseGraphView graphView, CommentBlock block) { commentBlock = block; owner = graphView; title = block.title; SetSize(block.size); SetPosition(block.position); headerContainer.Q().RegisterCallback>(TitleChangedCallback); titleLabel = headerContainer.Q