# Returning multiple values from a function in a function library class

**URL:** <https://forums.unrealengine.com/t/returning-multiple-values-from-a-function-in-a-function-library-class/2856897>\
**Category:** C++\
**Tags:** unreal-engine, CPP, question\
**Created:** [November 16, 2026, 10:52pm UTC](https://forums.unrealengine.com/t/returning-multiple-values-from-a-function-in-a-function-library-class/2856897 "2026-11-16T22:52:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aerospike\_andy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/aerospike_andy/32/1098814_2.png) [@aerospike\_andy](https://forums.unrealengine.com/u/aerospike_andy)\
**Post date:** [November 16, 2026, 10:52pm UTC](https://forums.unrealengine.com/t/returning-multiple-values-from-a-function-in-a-function-library-class/2856897/1 "2026-11-16T22:52:54Z")

</div>

I am trying to return multiple values from a function library class I made and nothing seems to compile…

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/7/4/0744493743c10f2535a70c32f17d800f1e3cf864.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/a/e/dae19edc68b89eca0cc820ae560661d8c0ae79a0.png)

The error this is producing is a little odd:

![image](https://d3kjluh73b9h9o.cloudfront.net/optimized/4X/d/7/8/d78e2923bb9c014f860be83ba1ed61fb3908c131_2_690x18.png)

I also tried a struct but it had similar issues…

Is there any way y’all know how to do this?
