Bug with Trigger Node

FlowCanvas Forums Support Bug with Trigger Node

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2315
    sinzer0
    Participant

    When I destroy a game object in the trigger enter flow then even though the stay flow is empty with no connections I get the following error non stop in the console.  Looks like on trigger stay keeps getting called for some reason even though the object is gone.  Running latest everything on unity 2019.1.1

     

    Stack trace:

     

    MissingReferenceException: The object of type ‘BoxCollider’ has been destroyed but you are still trying to access it.

    Your script should either check if it is null or you should not destroy the object.

    FlowCanvas.Nodes.TriggerEvents.OnTriggerStay (ParadoxNotion.Services.MessageRouter+MessageData`1[T] msg) (at Assets/ParadoxNotion/FlowCanvas/Modules/FlowGraphs/Nodes/Events/Object/TriggerEvents.cs:42)

    System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)

    Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.

    System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)

    System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)

    ParadoxNotion.Services.MessageRouter.Dispatch[T] (System.String message, T arg, System.Object sender) (at Assets/ParadoxNotion/CanvasCore/Common/Runtime/Services/MessageRouter.cs:437)

    ParadoxNotion.Services.MessageRouter.Update () (at Assets/ParadoxNotion/CanvasCore/Common/Runtime/Services/MessageRouter.cs:256)

     

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

    Hello,

    I have attached for you a unitypackage which includes the fix for this.
    Let me know if that works for you after you import the package.
    Thank you.

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

    Attachments:
    You must be logged in to view attached files.
    #2323
    sinzer0
    Participant

    Fixed it.  Thanks!

    #2329
    Gavalakis
    Keymaster

    Thanks for letting me know 🙂
    You are very welcome!

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.