Check System.Action Condition Task

NodeCanvas Forums General Discussion Check System.Action Condition Task

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #12366
    talthilas
    Participant

    Hi,
    Similar to the CheckCSharpEvent condition task, are we able get a CheckAction and a CheckAction<T> condition task? I basically want to check when a System.Action delegate gets called. I imagine it should work almost identically to the CheckCSharpEvent script – I tried making my own CheckAction condition task based on the CheckCSharpEvent script, but I found the CheckCSharpEvent script too hard to follow (reflection isn’t my strong suit). The reason I would like the CheckAction condition task is although CheckCSharpEvent is great, you are limited to raising the event from the same class it was defined in, which isn’t always what you want. I know the obvious workaround is to create a public method that will raise the event you want which NodeCanvas can detect, but the ability to check when System.Actions get invoked would be a nice feature.

    Thanks!

    #12375
    Gavalakis
    Keymaster

    Hello,

    I will take a look at this as soon as I return from summer vacation and will let you know. It shouldn’t be difficult to make 🙂
    Thanks!

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

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