Exits a function and returns an optional value.
    public class VisualScriptReturn : VisualScriptNode

Ends the execution of a function and returns control to the calling function. Optionally, it can return a Variant value.

Input Ports:

  • Sequence

  • Data (variant): result (optional)

Output Ports:

none

Inheritance Chain

Constructors

    public VisualScriptReturn()

Properties

    public bool ReturnEnabled { get; set; }

If true, the return input port is available.

    public Variant.Type ReturnType { get; set; }

The return value’s data type.

Methods

    public Variant.Type GetReturnType()

Getter for ReturnType

    public bool IsReturnValueEnabled()

Getter for ReturnEnabled

    public void SetEnableReturnValue(bool enable)

Setter for ReturnEnabled

    public void SetReturnType(Variant.Type type)

Setter for ReturnType

Tags: