Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix the method name. #225

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Assets/Examples/Editor/GraphProcessorMenuItems.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
public class GraphProcessorMenuItems : NodeGraphProcessorMenuItems
{
[MenuItem("Assets/Create/Node C# Script", false, MenuItemPosition.afterCreateScript)]
private static void CreateNodeCSharpScritpt() => CreateDefaultNodeCSharpScritpt();
private static void CreateNodeCSharpScript() => CreateDefaultNodeCSharpScript();

[MenuItem("Assets/Create/Node View C# Script", false, MenuItemPosition.afterCreateScript + 1)]
private static void CreateNodeViewCSharpScritpt() => CreateDefaultNodeViewCSharpScritpt();
private static void CreateNodeViewCSharpScript() => CreateDefaultNodeViewCSharpScript();

// To add your C# script creation with you own templates, use ProjectWindowUtil.CreateScriptAssetFromTemplateFile(templatePath, defaultFileName)
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ protected static string GetCurrentProjectWindowPath()
return null;
}

protected static void CreateDefaultNodeCSharpScritpt()
protected static void CreateDefaultNodeCSharpScript()
{
ProjectWindowUtil.CreateScriptAssetFromTemplateFile(nodeTemplatePath, nodeBaseName);
}

protected static void CreateDefaultNodeViewCSharpScritpt()
protected static void CreateDefaultNodeViewCSharpScript()
{
ProjectWindowUtil.CreateScriptAssetFromTemplateFile(nodeViewTemplatePath, nodeViewBaseName);
}
Expand Down