Understanding Cached Anim State Data Variable

Hi I’m trying to understand the variable Cached Anim State data from the Matrix Small city project in Epic Store.


So on the Variable there’s 2 Variables to fill in " State Machine Name" and “State Name” I’m assuming they’re using this to track which states are playing.

In my case, My State Machine is nested under another state Machine.
So i’ve been trying to do simple print String to see if Cached Anim State data triggers, but they don’t. Assuming My state Machine is named “SM” and “SM_nested” , i tried both and none works. Is it the way it is ?
Or is there a way for nested states under Main State Machines to be tracked properly?

Hey, been trying also to figure it out, I am not sure about nesting but I was able to recreate this function for checking of current state by cached anim data, but it only works when State Machine (Locomotion ) is in the main AnimGraph, not in any layer. When I’ve had it in layer it didn’t work