Generic Event Enum with Generic Parameter

NodeCanvas Forums Support Generic Event Enum with Generic Parameter

Tagged: ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10810
    kevynm
    Participant

    So, I created this custom generic event where you need an enum type to use as the event name (for consistency) which works great. But, my problem is I want it to be able to send a generic data type too but the generic parameter is already filled by the enum. I tried adding another but there was an error. Does this have a workaround?

    #10815
    Gavalakis
    Keymaster

    Hello,

    Indeed, only one generic argument for tasks and nodes is supported.
    Unfortunately there is no good way around it if you want to use the generic argument for the enum.

    Here is a solution though for having a BBParameter which type can be set through the inspector panel after the task has been created.
    There is this special BBObjectParameter that can be used for that:

    I hope this works for you.
    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.