Action GraphOwnerControl.StopBehaviour not work

NodeCanvas Forums Support Action GraphOwnerControl.StopBehaviour not work

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #11156
    pplasto
    Participant

    hello.

    see the attachment picture, i use GraphOwnerControl.StopBehaviour in actionList, but it not work;
    i find the Deactivate GameObject Action also can not StopBehaviour;

    when i reuse the GameObject (first Deactivate and later Activate ), it will go wrong result.

    but Deactivate The GameObject on UNity Inspector can work, so weird.

    can anybody test it ? thanks very much…

    #11157
    pplasto
    Participant

    the Screenshot

    Attachments:
    You must be logged in to view attached files.
    #11169
    Gavalakis
    Keymaster

    Hello,

    There exist a special action under the “Utility” category called “Control Graph Owner”, with which you can Stop, Enable or Pause a GraphOwner correctly, and which is made specifically for this reason πŸ™‚
    Can you please try this action and let me know if that works for you?

    Your example state should also work correctly though. I’ve just tried this and it did. πŸ™‚
    Hmm. Do you have more than one GraphOwner components (FSMOwner, BehavourTreeOwner) attached on the gameobject?

    Let me know.
    Thanks.

    Join us on Discord: https://discord.gg/97q2Rjh

    #11172
    pplasto
    Participant

    the action in my example is that “Utility/Control Graph Owner” ;

    i’m use unity3d lastest version, Unity 5.3.5p8 (64-bit);

    can you test again about this situation like this picture :
    the log action “hello world” will print twice;

    As you can see:
    only one GraphOwner Component on gameobject..
    and NC version is the lastest;

    thank you to reply.

    #11173
    pplasto
    Participant

    Screenshot

    Attachments:
    You must be logged in to view attached files.
    #11175
    Gavalakis
    Keymaster

    Hello again,

    Ah, I just realized a small bug and the StopBehaviour will not work correctly as part of an Action List. But, why would you want to stop the behaviour in the middle of an action list in sequence though like in the image above? πŸ™‚

    Let me know.
    Thanks.

    Join us on Discord: https://discord.gg/97q2Rjh

    #11178
    pplasto
    Participant

    OK…
    The Behaviour is useless, i make it just show the bug.

    Our Behaviour is like screenshot , it’s a Parallel(First Failure) with two children, left is a action list, right is a Repeat (Forever);

    when the action list run GameObject.Deactivate, the Behaviour still running; and Next time we activate GameObject , the behaviour will run the Repeat really forever…

    i know there is a mistake about Parallel(First Failure) , it have to be (first success);
    but i still think Deactiveate GameObject , but Behaviour not Stop is a litter unusual…

    Attachments:
    You must be logged in to view attached files.
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.