From 46ea6d2634dbae48c8380eab042d49f8a722330d Mon Sep 17 00:00:00 2001 From: taoria <445625470@qq.com> Date: Fri, 12 Aug 2022 23:41:39 +0800 Subject: [PATCH] fix:asmdef update --- Samples/HelloGraph.cs | 2 +- .../Editor/DeveloperHelper/CleanMissingTypeHelper.cs | 4 ++-- TNodeCore/Editor/EditorPersistence/GraphEditorData.cs | 2 +- .../Editor/Tools/GraphEditorCreator/GraphEditorCreator.cs | 6 +++--- TNodeCore/TNodeCore.asmdef | 2 +- TNodeGraphViewImpl/Editor/Cache/NodeEditorExtensions.cs | 8 ++++---- TNodeGraphViewImpl/TNodeGraphView.asmdef | 2 +- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Samples/HelloGraph.cs b/Samples/HelloGraph.cs index 779c75d..46852b0 100644 --- a/Samples/HelloGraph.cs +++ b/Samples/HelloGraph.cs @@ -3,7 +3,7 @@ using TNodeCore.Runtime.Models; using UnityEngine; namespace Samples{ - [CreateAssetMenu(fileName = "New HelloGraph", menuName = "TNode/HelloGraph")] + [CreateAssetMenu(fileName = "New HelloGraph", menuName = "TNodeCore/HelloGraph")] [Serializable] public class HelloGraph : GraphData{ diff --git a/TNodeCore/Editor/DeveloperHelper/CleanMissingTypeHelper.cs b/TNodeCore/Editor/DeveloperHelper/CleanMissingTypeHelper.cs index d00be4e..753d2de 100644 --- a/TNodeCore/Editor/DeveloperHelper/CleanMissingTypeHelper.cs +++ b/TNodeCore/Editor/DeveloperHelper/CleanMissingTypeHelper.cs @@ -10,7 +10,7 @@ namespace TNode.TNodeCore.Editor.DeveloperHelper{ public static class CleanMissingTypeHelper { - [MenuItem("TNode/CleanMissingType/CleanScriptObjects")] + [MenuItem("TNodeCore/CleanMissingType/CleanScriptObjects")] public static void CleanMissingTypesOnScriptableObjects() { var report = new StringBuilder(); @@ -38,7 +38,7 @@ namespace TNode.TNodeCore.Editor.DeveloperHelper{ Debug.Log(report.ToString()); } - [MenuItem("TNode/CleanMissingType/CleanSceneGameObjects")] + [MenuItem("TNodeCore/CleanMissingType/CleanSceneGameObjects")] public static void CleanMissingTypesOnGameObjects(){ var report = new StringBuilder(); diff --git a/TNodeCore/Editor/EditorPersistence/GraphEditorData.cs b/TNodeCore/Editor/EditorPersistence/GraphEditorData.cs index 9282ea8..91b31f8 100644 --- a/TNodeCore/Editor/EditorPersistence/GraphEditorData.cs +++ b/TNodeCore/Editor/EditorPersistence/GraphEditorData.cs @@ -11,7 +11,7 @@ namespace TNode.TNodeCore.Editor.EditorPersistence{ /// Graph Editor Data hold the config of a type of graph. /// it's used by a graph editor to determine which implementation to use and some other config may be stored in here some days later. /// - [CreateAssetMenu(fileName = "Graph Editor Data", menuName = "TNode/Graph Editor Data")] + [CreateAssetMenu(fileName = "Graph Editor Data", menuName = "TNodeCore/Graph Editor Data")] public class GraphEditorData:ScriptableObject{ /// /// The implementation of a graph view.experimental graphview or GTF. diff --git a/TNodeCore/Editor/Tools/GraphEditorCreator/GraphEditorCreator.cs b/TNodeCore/Editor/Tools/GraphEditorCreator/GraphEditorCreator.cs index 679ce25..04100ce 100644 --- a/TNodeCore/Editor/Tools/GraphEditorCreator/GraphEditorCreator.cs +++ b/TNodeCore/Editor/Tools/GraphEditorCreator/GraphEditorCreator.cs @@ -6,7 +6,7 @@ using UnityEditor; using UnityEngine; using UnityEngine.UIElements; -//add an attribute right click asset panel and select "TNode/Create/Create New Graph Editor" to call this editor +//add an attribute right click asset panel and select "TNodeCore/Create/Create New Graph Editor" to call this editor namespace TNodeCore.Editor.Tools.GraphEditorCreator{ @@ -20,8 +20,8 @@ namespace TNodeCore.Editor.Tools.GraphEditorCreator{ private TextField _graphClassNameTextField; private Button _createButton; private readonly SourceGeneratorForGraphEditor _sourceGeneratorForGraphEditor = new SourceGeneratorForGraphEditor(); - [MenuItem("Assets/Create/TNode/Create New Graph Editor")] - [MenuItem("TNode/Create New Graph Editor")] + [MenuItem("Assets/Create/TNodeCore/Create New Graph Editor")] + [MenuItem("TNodeCore/Create New Graph Editor")] public static void ShowExample() { GraphEditorCreator wnd = GetWindow(); diff --git a/TNodeCore/TNodeCore.asmdef b/TNodeCore/TNodeCore.asmdef index 959c6ee..bdd5334 100644 --- a/TNodeCore/TNodeCore.asmdef +++ b/TNodeCore/TNodeCore.asmdef @@ -1,3 +1,3 @@ { - "name": "NewAssembly" + "name": "TNodeCore" } diff --git a/TNodeGraphViewImpl/Editor/Cache/NodeEditorExtensions.cs b/TNodeGraphViewImpl/Editor/Cache/NodeEditorExtensions.cs index 1b7cba9..09ea5b9 100644 --- a/TNodeGraphViewImpl/Editor/Cache/NodeEditorExtensions.cs +++ b/TNodeGraphViewImpl/Editor/Cache/NodeEditorExtensions.cs @@ -15,7 +15,7 @@ using UnityEngine; namespace TNodeGraphViewImpl.Editor.Cache{ /// - /// Internal singleton class for caching TNode reflection Data. + /// Internal singleton class for caching TNodeCore reflection Data. /// internal class NodeEditorTypeDictionary:Dictionary{ private class NodeEditorTypeDictionaryComparer : IEqualityComparer{ @@ -138,8 +138,8 @@ namespace TNodeGraphViewImpl.Editor.Cache{ //fetch this type 's parent class var parent = type.BaseType; //Check if this type is a generic type and is a generic type of BaseNodeView or BaseDataGraphView, - //Two level generic definition is now supported by TNode - //Deeper nested generic definition is not supported by TNode + //Two level generic definition is now supported by TNodeCore + //Deeper nested generic definition is not supported by TNodeCore if (parent is{IsGenericType: true} && (_acceptedTypesForGenericToSpecific.Contains(parent.GetGenericTypeDefinition()) || (parent.GetGenericTypeDefinition().IsGenericType && _acceptedTypesForGenericToSpecific.Contains(parent.GetGenericTypeDefinition().GetGenericTypeDefinition())) @@ -278,7 +278,7 @@ namespace TNodeGraphViewImpl.Editor.Cache{ public class Launcher{ static Launcher(){ //Get version of the package - Debug.Log("TNode v0.01 is launched"); + Debug.Log("TNodeCore v0.01 is launched"); NodeEditorSingleton.Instance.Initialize(); } } diff --git a/TNodeGraphViewImpl/TNodeGraphView.asmdef b/TNodeGraphViewImpl/TNodeGraphView.asmdef index 66bcd19..7434038 100644 --- a/TNodeGraphViewImpl/TNodeGraphView.asmdef +++ b/TNodeGraphViewImpl/TNodeGraphView.asmdef @@ -1,6 +1,6 @@ { "name": "TNodeGraphView", - "rootNamespace": "", + "rootNamespace": "TNodeGraphView", "references": [ "GUID:d9d6b4f0cdce23345bf2e956f8041ca2" ],