Generic return static function In ExecuteFunction action task

NodeCanvas Forums Support Generic return static function In ExecuteFunction action task

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #14809
    textusgames
    Participant

    Hello.

    I was experimenting with DoTween and NodeCanvas. I found some limitation. I can start tween but I can not setEasing on it. The function are not shown in inspector. Function looks like this  public static <span style=”background-color: rgba(4, 4, 5, 0.07); color: #dcddde; font-family: Whitney, ‘Helvetica Neue’, Helvetica, Arial, sans-serif; white-space: break-spaces; –darkreader-inline-bgcolor: rgba(13, 13, 13, 0.07); –darkreader-inline-color: #ffffff;” data-darkreader-inline-bgcolor=”” data-darkreader-inline-color=””>T SetEase<T>(this T t, Ease ease) where T : Tween . I found it very limiting to not able to use this from ExecuteFunction action task. Will generic return type function ever be supported?
    FLow canvas can call this functions.</span>

    #14812
    Gavalakis
    Keymaster

    Hello there,

    I will take a look at adding support for generic methods in NodeCanvas reflected actions and conditions. (something that is not supported right now even though it is in FlowCanvas but FC is heavily based on reflection in comparison to NC). With that said however, have you tried the DOTWeen integration for NodeCanvas which has some premade actions available? I think that having tasks that do the whole work self-contained instead of many small tasks making up for the job is generally better in my opinion.

    Thanks 🙂

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

    #14818
    textusgames
    Participant

    Been able to call almost any kind of method from node canvas will be great. Because if you can’t you need to make some workarounds and it is not good. For now, if something is not callable from Execute Function action task you can still call it from subgraph (flow) but since bound subgraphs are not supported yet, it is not an option to create a flow asset each time you want to just call one function(with bound subgraphs this would be quite normal). That is one of the reasons I am excited to have bound subgraphs in the future. And the ability to call generic functions from Action or Condition task will be a big plus too.

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