# Making Object References Compatible with Float Variables in Blueprint.

**URL:** <https://forums.unrealengine.com/t/making-object-references-compatible-with-float-variables-in-blueprint/752550>\
**Category:** Blueprint\
**Tags:** object-reference, float, unreal-engine, Blueprint\
**Created:** [January 19, 2023, 5:02am UTC](https://forums.unrealengine.com/t/making-object-references-compatible-with-float-variables-in-blueprint/752550 "2023-01-19T05:02:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![TreevDee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TreevDee](https://forums.unrealengine.com/u/TreevDee)\
**Post date:** [January 19, 2023, 5:02am UTC](https://forums.unrealengine.com/t/making-object-references-compatible-with-float-variables-in-blueprint/752550/1 "2023-01-19T05:02:22Z")

</div>

How do I make an object reference compatible with a float reference in a character Blueprint?

---

<div class="post-metadata">

**Author:** ![jwatte](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jwatte/32/744941_2.png) [@jwatte](https://forums.unrealengine.com/u/jwatte)\
**Post date:** [January 19, 2023, 5:46am UTC](https://forums.unrealengine.com/t/making-object-references-compatible-with-float-variables-in-blueprint/752550/2 "2023-01-19T05:46:15Z")

</div>

Those are two different types, and you cannot use the same thing for both of them.

If you describe what end goal you’re trying to accomplish, perhaps someone can help you figure out how to get there, though!

---

<div class="post-metadata">

**Author:** ![TITANOVTZAR](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TITANOVTZAR](https://forums.unrealengine.com/u/TITANOVTZAR)\
**Post date:** [June 26, 2025, 1:38pm UTC](https://forums.unrealengine.com/t/making-object-references-compatible-with-float-variables-in-blueprint/752550/3 "2025-06-26T13:38:29Z")

</div>

Hi, i have some question. I need make reference on float (see screenshot), how i can make this?

 ![CVzwOWuWoAIpgRC](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/1/e/d1eef4b48f801bca52538b52200cc1d8d0e7e46c.jpeg)

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [June 26, 2025, 10:31pm UTC](https://forums.unrealengine.com/t/making-object-references-compatible-with-float-variables-in-blueprint/752550/4 "2025-06-26T22:31:28Z")

</div>

Pull off the blue pin and search for the float variable. Then pass that variable ref to the return node.

---

<div class="post-metadata">

**Author:** ![TITANOVTZAR](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TITANOVTZAR](https://forums.unrealengine.com/u/TITANOVTZAR)\
**Post date:** [June 27, 2025, 9:04am UTC](https://forums.unrealengine.com/t/making-object-references-compatible-with-float-variables-in-blueprint/752550/5 "2025-06-27T09:04:09Z")

</div>

It looks a little different than I need. The first screenshot is as I did on your advice, the second photo is a screenshot from the book I use to study the UE5. I need it as shown in the book.

 ![Screenshot1488](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/7/6/97646389dc2e5549ff4e9163543243d4f170cf29.png)

 ![1000016992](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/d/5/2d5f78a22fca041aef0bc37b815e3114069a6390.jpeg)

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [June 27, 2025, 6:52pm UTC](https://forums.unrealengine.com/t/making-object-references-compatible-with-float-variables-in-blueprint/752550/6 "2025-06-27T18:52:18Z")

</div>

Open the Controller UI class.  
Add a Float variable, Name it Health  
From the cast (As Controller UI) → Get Health
