Custom functions can't return null

Forums 💬 FlowCanvas ⚙️ Support Custom functions can't return null

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #22007
    rami_falldamage
    Participant

      Attempting to return null in a custom function that has GameObject as an example set as the return type will log the error:
      (Execution Failure Error)</b>: Return Value is not of expected type 'GameObject'.
      I would expect a FC custom function to be able to return null if the return type is set to a class like in any C# function.

      Attached image is just an example off what can cause the error.

      This makes making custom functions that for example search for things annoying to do since they must return a valid value.

      #22010
      Gavalakis
      Keymaster

        Hello,

        Sorry for late reply. This is actually a bug. I have attached for you here a correction unitypackage.
        Let me know if that works for you.
        Thanks.

        #22009
        rami_falldamage
        Participant

          Works! Thanks!

          #22008
          Gavalakis
          Keymaster

            Awesome 🙂

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