# Function input : Variable reference

**URL:** <https://forums.unrealengine.com/t/function-input-variable-reference/299488>\
**Category:** Editor Scripting\
**Tags:** reference, object-reference, unreal-engine, question\
**Created:** [November 20, 2014, 7:10pm UTC](https://forums.unrealengine.com/t/function-input-variable-reference/299488 "2014-11-20T19:10:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eresea](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Eresea](https://forums.unrealengine.com/u/Eresea)\
**Post date:** [November 20, 2014, 7:10pm UTC](https://forums.unrealengine.com/t/function-input-variable-reference/299488/1 "2014-11-20T19:10:28Z")

</div>

Hello,

I have encountered a problem, I am trying to get the button I clicked on a UMG blueprint to run a function with inputs.

The problem is that inside my function, I need to use the button reference to change the tool tip and background color, I thought I would simply put an input for a button reference but the thing is that the input can only be “Button C reference” and so I can’t plug in the “Button reference” that I want to use inside.

Is there a way to set the input of a function to a reference instead of C reference ?

Or is there a way to get my reference within the function without inputs?  
I intend to use this function for many buttons so I can’t make an instance of the function for each button.

Thanks for your help,  
Eresea.
