Finding logic which changes values. Blueprints, UE5

Hello. I have a problem with my logic, something changes several values and can’t find it. Is there a way to find where any values change (any tools; indicators via output log)?

If blueprint variables change, try to use the find function. Ctrl-F in any blueprint viewport opens the search, and here you search for “set NNN” with name of your variable.
Use the Find in all blueprints symbol on the right of the search entry field, so that all blueprints get searched.
This way, you find all places, where potential changes are made to the variable.

2 Likes

A stupid-hacky way that works if this is in blueprint and it’s happening during PIE is to hijack some networking functionality and change your variables “Replication” property to “RepNotify”.

This creates a function called “OnRep_yourVariableNameHere”, which will automatically be called when something modifies the variable, so just put a print string in that function and put a breakpoint on it.

Then play the game and when the breakpoint hits go to “Tools → Debug → Blueprint Debugger” and it’ll give you a trace to what updated the variable.

(as always with blueprint breakpoints they might not trigger properly if you have multiple actors/objects and that asset window open at the same time etc, so if your print-string is printing but the breakpoint is not hitting make sure to select the correct object from the debug dropdown or close the asset window for that blueprint and try again)