Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2012
    Posts
    2

    Question NodeSchema.Initialize() override not working in TestNodeSchema

    When we override the Initialize method in TestNodeSchema and set the icon, that is not being called at all. I have debugged everything. But if I set the icon in the NodeSchema Initialize() itself it runs perfectly. Please help as stuck on this! Below is the TestNodeSchema code:
    Code:
    public class TestNodeSchema : NodeSchema {
          public override void Initialize() {
                 base.Initialize();
    
                 icon = Editor resource.TestIcon;
                 displayName = "Test";
          }
    }

  2. #2
    Join Date
    Jun 2008
    Location
    Iran / Tehran
    Posts
    285
    oh shoot, i just saw this question on the series list, not sure if you figured this out by now or not, but :

    basically, each node's schema Initialize will be called only if you have that node and add it via the menu on the graph, the test node was a dummy place holder until we get into actual node graphs. that is why i really didn't pay attention to what that node was doing simply because in chapter two, i knew that the node would be nuked. if you followed along chapter two, there are many bug fixing there and right now, everything works but it needs final additions to the behavior tree system and one and the biggest things missing is the deep copy of all the tree and graph to make it really functional at the end of chapter 2, in other words, that chapter is not finished yet :/
    If you want to learn something, start teaching about it to others, nothing will help you more than that !

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •