public override void OnOpen() { base.OnOpen(); window.titleContent.text = "InteractML"; // Set the background color and highlight color NodeEditorPreferences.GetSettings().highlightColor = hexToColor("21203B"); NodeEditorPreferences.GetSettings().gridLineColor = hexToColor("21203B"); NodeEditorPreferences.GetSettings().gridBgColor = hexToColor("21203B"); // Set port colours based on type NodeEditorPreferences.GetSettings().typeColors[NodeEditorUtilities.PrettyName(typeof(GameObject))] = hexToColor("#E24680"); NodeEditorPreferences.GetSettings().typeColors[NodeEditorUtilities.PrettyName(typeof(float))] = hexToColor("#888EF7"); NodeEditorPreferences.GetSettings().typeColors[NodeEditorUtilities.PrettyName(typeof(int))] = hexToColor("#888EF7"); NodeEditorPreferences.GetSettings().typeColors[NodeEditorUtilities.PrettyName(typeof(float[]))] = hexToColor("#888EF7"); NodeEditorPreferences.GetSettings().typeColors[NodeEditorUtilities.PrettyName(typeof(Vector2))] = hexToColor("#888EF7"); NodeEditorPreferences.GetSettings().typeColors[NodeEditorUtilities.PrettyName(typeof(Vector3))] = hexToColor("#888EF7"); NodeEditorPreferences.GetSettings().typeColors[NodeEditorUtilities.PrettyName(typeof(Vector4))] = hexToColor("#888EF7"); NodeEditorPreferences.GetSettings().typeColors[NodeEditorUtilities.PrettyName(typeof(XNode.Node))] = hexToColor("#888EF7"); NodeEditorPreferences.GetSettings().typeColors[NodeEditorUtilities.PrettyName(typeof(List <XNode.Node>))] = hexToColor("#888EF7"); NodeEditorPreferences.GetSettings().typeColors[NodeEditorUtilities.PrettyName(typeof(TrainingExamplesNode))] = hexToColor("#74DF84"); NodeEditorPreferences.GetSettings().typeColors[NodeEditorUtilities.PrettyName(typeof(List <TrainingExamplesNode>))] = hexToColor("#74DF84"); NodeEditorPreferences.GetSettings().typeColors[NodeEditorUtilities.PrettyName(typeof(IMLConfiguration))] = hexToColor("#5EB3F9"); NodeEditorPreferences.GetSettings().portTooltips = false; }