diff --git a/Example/Nodes/MathNode.cs b/Example/Nodes/MathNode.cs
index bba473e..b9c1e83 100644
--- a/Example/Nodes/MathNode.cs
+++ b/Example/Nodes/MathNode.cs
@@ -9,7 +9,7 @@ namespace BasicNodes {
// The value of an output node field is not used for anything, but could be used for caching output results
[Output] public float result;
- // UNEC will display this as an editable field - just like the normal inspector would
+ // Will be displayed as an editable field - just like the normal inspector
public MathType mathType = MathType.Add;
public enum MathType { Add, Subtract, Multiply, Divide }
diff --git a/Scripts/Editor/NodeEditorGUILayout.cs b/Scripts/Editor/NodeEditorGUILayout.cs
index 5edb34b..1751d78 100644
--- a/Scripts/Editor/NodeEditorGUILayout.cs
+++ b/Scripts/Editor/NodeEditorGUILayout.cs
@@ -4,7 +4,7 @@ using UnityEditor;
using UnityEngine;
namespace XNodeEditor {
- /// UNEC-specific version of
+ /// xNode-specific version of
public static class NodeEditorGUILayout {
/// Make a field for a serialized property. Automatically displays relevant node port.
diff --git a/Scripts/Editor/NodeEditorPreferences.cs b/Scripts/Editor/NodeEditorPreferences.cs
index b051202..910d426 100644
--- a/Scripts/Editor/NodeEditorPreferences.cs
+++ b/Scripts/Editor/NodeEditorPreferences.cs
@@ -114,8 +114,8 @@ namespace XNodeEditor {
//Load type colors
generatedTypeColors = new Dictionary();
- if (!EditorPrefs.HasKey("unec_typecolors")) EditorPrefs.SetString("unec_typecolors", "");
- string[] data = EditorPrefs.GetString("unec_typecolors").Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
+ if (!EditorPrefs.HasKey("xnode_typecolors")) EditorPrefs.SetString("xnode_typecolors", "");
+ string[] data = EditorPrefs.GetString("xnode_typecolors").Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
typeColors = new Dictionary();
for (int i = 0; i < data.Length; i += 2) {
Color col;
@@ -125,13 +125,13 @@ namespace XNodeEditor {
}
//Load grid colors
- if (!EditorPrefs.HasKey("unec_gridcolor0")) EditorPrefs.SetString("unec_gridcolor0", ColorUtility.ToHtmlStringRGB(new Color(0.45f, 0.45f, 0.45f)));
- ColorUtility.TryParseHtmlString("#" + EditorPrefs.GetString("unec_gridcolor0"), out _gridLineColor);
- if (!EditorPrefs.HasKey("unec_gridcolor1")) EditorPrefs.SetString("unec_gridcolor1", ColorUtility.ToHtmlStringRGB(new Color(0.18f, 0.18f, 0.18f)));
- ColorUtility.TryParseHtmlString("#" + EditorPrefs.GetString("unec_gridcolor1"), out _gridBgColor);
+ if (!EditorPrefs.HasKey("xnode_gridcolor0")) EditorPrefs.SetString("xnode_gridcolor0", ColorUtility.ToHtmlStringRGB(new Color(0.45f, 0.45f, 0.45f)));
+ ColorUtility.TryParseHtmlString("#" + EditorPrefs.GetString("xnode_gridcolor0"), out _gridLineColor);
+ if (!EditorPrefs.HasKey("xnode_gridcolor1")) EditorPrefs.SetString("xnode_gridcolor1", ColorUtility.ToHtmlStringRGB(new Color(0.18f, 0.18f, 0.18f)));
+ ColorUtility.TryParseHtmlString("#" + EditorPrefs.GetString("xnode_gridcolor1"), out _gridBgColor);
//Load snap option
- if (EditorPrefs.HasKey("unec_gridsnap")) _gridSnap = EditorPrefs.GetBool("unec_gridsnap");
+ if (EditorPrefs.HasKey("xnode_gridsnap")) _gridSnap = EditorPrefs.GetBool("xnode_gridsnap");
NodeEditorWindow.RepaintAll();
prefsLoaded = true;
@@ -139,9 +139,9 @@ namespace XNodeEditor {
/// Delete all prefs
public static void ResetPrefs() {
- if (EditorPrefs.HasKey("unec_typecolors")) EditorPrefs.DeleteKey("unec_typecolors");
- if (EditorPrefs.HasKey("unec_gridcolor0")) EditorPrefs.DeleteKey("unec_gridcolor0");
- if (EditorPrefs.HasKey("unec_gridcolor1")) EditorPrefs.DeleteKey("unec_gridcolor1");
+ if (EditorPrefs.HasKey("xnode_typecolors")) EditorPrefs.DeleteKey("xnode_typecolors");
+ if (EditorPrefs.HasKey("xnode_gridcolor0")) EditorPrefs.DeleteKey("xnode_gridcolor0");
+ if (EditorPrefs.HasKey("xnode_gridcolor1")) EditorPrefs.DeleteKey("xnode_gridcolor1");
LoadPrefs();
}
@@ -150,10 +150,10 @@ namespace XNodeEditor {
foreach (var item in typeColors) {
s += item.Key + "," + ColorUtility.ToHtmlStringRGB(item.Value) + ",";
}
- EditorPrefs.SetString("unec_typecolors", s);
- EditorPrefs.SetString("unec_gridcolor0", ColorUtility.ToHtmlStringRGB(_gridLineColor));
- EditorPrefs.SetString("unec_gridcolor1", ColorUtility.ToHtmlStringRGB(_gridBgColor));
- EditorPrefs.SetBool("unec_gridsnap", _gridSnap);
+ EditorPrefs.SetString("xnode_typecolors", s);
+ EditorPrefs.SetString("xnode_gridcolor0", ColorUtility.ToHtmlStringRGB(_gridLineColor));
+ EditorPrefs.SetString("xnode_gridcolor1", ColorUtility.ToHtmlStringRGB(_gridBgColor));
+ EditorPrefs.SetBool("xnode_gridsnap", _gridSnap);
}
private static void VerifyLoaded() {
diff --git a/Scripts/Editor/NodeEditorResources.cs b/Scripts/Editor/NodeEditorResources.cs
index 28afdd7..490743b 100644
--- a/Scripts/Editor/NodeEditorResources.cs
+++ b/Scripts/Editor/NodeEditorResources.cs
@@ -2,7 +2,7 @@
namespace XNodeEditor {
public static class NodeEditorResources {
- //Unec textures
+ // Textures
public static Texture2D dot { get { return _dot != null ? _dot : _dot = Resources.Load("xnode_dot"); } }
private static Texture2D _dot;
public static Texture2D dotOuter { get { return _dotOuter != null ? _dotOuter : _dotOuter = Resources.Load("xnode_dot_outer"); } }
@@ -10,7 +10,7 @@ namespace XNodeEditor {
public static Texture2D nodeBody { get { return _nodeBody != null ? _nodeBody : _nodeBody = Resources.Load("xnode_node"); } }
private static Texture2D _nodeBody;
- //Unec styles
+ // Styles
public static Styles styles { get { return _styles != null ? _styles : _styles = new Styles(); } }
public static Styles _styles = null;