protected override void OnReadNodes() { if (!mConnectionEditor) { // ensure all selected CPs join a single connection. Otherwise don't show Connections Inspector if (!serializedObject.FindProperty("m_Connection").hasMultipleDifferentValues&& Target.Connection != null) { mConnectionEditor = (CurvyConnectionEditor)Editor.CreateEditor(Target.Connection, typeof(CurvyConnectionEditor)); var sec = Node.AddSection("Connection", ConnectionGUI); if (sec) { sec.SortOrder = 1; sec.HelpURL = CurvySpline.DOCLINK + "curvyconnection"; } } } }