Executing static function on non-MonoBehaviour-derived class in 2.80

Forums 💬 NodeCanvas ⚙️ Support Executing static function on non-MonoBehaviour-derived class in 2.80

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #17433
    oxeren
    Participant

      Hey!
      It worked perfectly well with Execute Static Function (mp) task before the update to 2.80 , but now I don’t see my non-Monobehaviour class in the list when trying to select a static method in Execute Function (mp), even though the class is added to Preferred Types, while MonoBehaviours with static methods are of course visible and work fine.

      Thanks!

      #17434
      Gavalakis
      Keymaster

        Hello and sorry for late reply.
        You are correct. This is a bug in the “new” Execute Function 🙂
        To quick fix this, please open up ExecuteFunction_Multiplatform.cs file and change line #181 from this:

        to this:

        ( You can do the same to “ExecuteFunction.cs” file at line #165 if you are using that as well )

        Thanks for letting me know!

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