mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-20 17:26:02 +08:00
Changed from .ToString() to .Name that omits the namespace from the name.
This commit is contained in:
parent
cd8b14bf6d
commit
1731f8161f
@ -301,7 +301,7 @@ namespace XNodeEditor {
|
|||||||
public void CreateNode(Type type, Vector2 position) {
|
public void CreateNode(Type type, Vector2 position) {
|
||||||
XNode.Node node = graph.AddNode(type);
|
XNode.Node node = graph.AddNode(type);
|
||||||
node.position = position;
|
node.position = position;
|
||||||
node.name = UnityEditor.ObjectNames.NicifyVariableName(type.ToString());
|
node.name = UnityEditor.ObjectNames.NicifyVariableName(type.Name);
|
||||||
AssetDatabase.AddObjectToAsset(node, graph);
|
AssetDatabase.AddObjectToAsset(node, graph);
|
||||||
if (NodeEditorPreferences.GetSettings().autoSave) AssetDatabase.SaveAssets();
|
if (NodeEditorPreferences.GetSettings().autoSave) AssetDatabase.SaveAssets();
|
||||||
Repaint();
|
Repaint();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user