# Breakpoint conditions for UStructs? (Debugger thinks FVector is a "union\_128")

**URL:** <https://forums.unrealengine.com/t/breakpoint-conditions-for-ustructs-debugger-thinks-fvector-is-a-union-128/407266>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** Debugging, fvector, breakpoint, unreal-engine, question, CPP\
**Created:** [October 17, 2017, 10:03pm UTC](https://forums.unrealengine.com/t/breakpoint-conditions-for-ustructs-debugger-thinks-fvector-is-a-union-128/407266 "2017-10-17T22:03:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Teiwaz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Teiwaz](https://forums.unrealengine.com/u/Teiwaz)\
**Post date:** [October 17, 2017, 10:03pm UTC](https://forums.unrealengine.com/t/breakpoint-conditions-for-ustructs-debugger-thinks-fvector-is-a-union-128/407266/1 "2017-10-17T22:03:07Z")

</div>

I have what seems like it’d be a fairly common problem - a player’s position getting set… somewhere… to an invalid value. I’m trying to track it down.

I’d like to set a data breakpoint which triggers if the player’s RootComponent’s ComponentToWorld transform’s Translation.Z value is \< 0. (In my test level, the player ends up underground.)

However, while I can set the data breakpoint to watch the ComponentToWorld.Translation FVector, any time I try to go deeper into the nested structures I run into problems. The core issue seems to be that for some reason the C++ debugger thinks that ComponentToWorld.Translation is something called a “union\_m128” rather than am FVector, and therefore doesn’t have a .Z member.

I’ve tried casting the ComponentToWorld.Translation back to an FVector, and it didn’t help. I’m assuming that the problem is related to some sort of low-level platform math issue, where every platform has, under the hood, a different implementation of some basic math functions, but I have no idea how to work around that.

Has anyone gotten this working, or have any idea how to work around it? It seems like a really common problem, and exactly what data breakpoints are meant to solve.

---

<div class="post-metadata">

**Author:** ![Teiwaz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Teiwaz](https://forums.unrealengine.com/u/Teiwaz)\
**Post date:** [October 17, 2017, 11:07pm UTC](https://forums.unrealengine.com/t/breakpoint-conditions-for-ustructs-debugger-thinks-fvector-is-a-union-128/407266/2 "2017-10-17T23:07:36Z")

</div>

I never found a way to convert the \_\_m128 back to an FVector, but by examining the value with a watch, I was able to find the data.

The \_\_m128 appears to be a generic structure which just… contains 128 bytes of data in various configurations for reasons I don’t understand, in the form of multiple arrays which store various basic data types of different sizes.

I found the Z-value of the vector here: Translation.m128\_f32[2]
