public override void OnInspectorGUI() { ConnectionGUIInspectorHelper helper = target as ConnectionGUIInspectorHelper; var con = helper.connectionGUI; if (con == null) { return; } con.DrawObject(); }
private ConnectionGUI(ConnectionData data, ConnectionPointData output, ConnectionPointData input) { //UnityEngine.Assertions.Assert.IsTrue(output.IsOutput, "Given Output point is not output."); //UnityEngine.Assertions.Assert.IsTrue(input.IsInput, "Given Input point is not input."); m_inspector = ScriptableObject.CreateInstance <ConnectionGUIInspectorHelper>(); m_inspector.hideFlags = HideFlags.DontSave; this.m_data = data; this.m_outputPoint = output; this.m_inputPoint = input; }
public override void OnInspectorGUI() { ConnectionGUIInspectorHelper helper = target as ConnectionGUIInspectorHelper; var con = helper.connectionGUI; if (con == null) { return; } EditorGUILayout.HelpBox("连接信息:", MessageType.Info); con.DrawObject(); }
private ConnectionGUI(ConnectionData data, ConnectionPointData output, ConnectionPointData input, NodeGraphController controller) { UnityEngine.Assertions.Assert.IsTrue(output.IsOutput, "Given Output point is not output."); UnityEngine.Assertions.Assert.IsTrue(input.IsInput, "Given Input point is not input."); m_controller = controller; m_inspector = ScriptableObject.CreateInstance <ConnectionGUIInspectorHelper>(); m_inspector.hideFlags = HideFlags.DontSave; this.m_data = data; this.m_outputPoint = output; this.m_inputPoint = input; //connectionButtonStyle = "sv_label_0"; }