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

    [Obsolete("GetReturnType is deprecated. Use the ReturnType property instead.")]
    public Variant.Type GetReturnType()

Getter for ReturnType

    [Obsolete("IsReturnValueEnabled is deprecated. Use the ReturnEnabled property instead.")]
    public bool IsReturnValueEnabled()

Getter for ReturnEnabled

    [Obsolete("SetEnableReturnValue is deprecated. Use the ReturnEnabled property instead.")]
    public void SetEnableReturnValue(bool enable)

Setter for ReturnEnabled

    [Obsolete("SetReturnType is deprecated. Use the ReturnType property instead.")]
    public void SetReturnType(Variant.Type type)

Setter for ReturnType

Tags: