tsu icon indicating copy to clipboard operation
tsu copied to clipboard

Can't return multiple values back to Blueprint

Open mihe opened this issue 5 years ago • 0 comments

Currently there's no way to return multiple things back to Blueprint, which is usually done in by returning an object with an entry for each return value, like so:

export function getBounds(target: Actor) {
    const origin: Vector = /* ... */;
    const extents: Vector = /* ... */;
    return { origin, extents };
}

... which would then ideally get translated into a Blueprint node with an output pin for both Origin and Extents.

mihe avatar Mar 25 '19 19:03 mihe