Esempio n. 1
0
        private void CreateConverterNodeOfClass(string convertClass, Vector2 position)
        {
            RegisterCompleteObjectUndo($"Added {convertClass} node");
            var node = ConvertNode.CreateFromType(typeof(ConvertNode), position) as ConvertNode;

            string[] vs = convertClass.Split('$');

            node.classTypeInfo.assemblyName = vs[2];

            node.description = vs[1];
            string[] cFuncInfo = vs[0].Split('/');
            node.convertFuncName        = cFuncInfo[cFuncInfo.Length - 1];
            node.classTypeInfo.fullName = cFuncInfo[cFuncInfo.Length - 2];

            AddNode(node);
        }
            public ConvertNode node; // actually it's convertnode

            public CNode(ConvertNode node)
            {
                this.node = node;
            }