Custom functions can't return null

FlowCanvas Forums Support Custom functions can't return null

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1687
    Rami
    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.

    Attachments:
    You must be logged in to view attached files.
    #1696
    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.

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

    Attachments:
    You must be logged in to view attached files.
    #1707
    Rami
    Participant

    Works! Thanks!

    #1710
    Gavalakis
    Keymaster

    Awesome 🙂

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

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