In Unreal Animation Blueprints, each state has an option for AlwaysResetOnEntry.

enter image description here

The tooltip text for this is:

Whether or not this state will ALWAYS reset its state on reentry, regardless of remaining weight


What does this do, exactly?

Additionally, what is a good example of where this would be used?


1 Answer 1


I got this reply from someone outside of Stack exchange, so I'll post it here to help others

Searched the code for bAlwaysResetOnEntry, looks like its used for animation state machines.

Implies its possible to re-enter a state while it is still the active state, and the reset flag would cause the state to re-trigger, possibly re-calling the OnStateEntered events. Untitled

if ((!bAlreadyActive || bForceReset) && !IsAConduitState(NewStateIndex))
            // Initialize the new state since it's not part of an active transition (and thus not still initialized)
            FAnimationInitializeContext InitContext(Context.AnimInstanceProxy);
            // Also call cache bones if needed
            // Note dont call CacheBones here if we are in the process of whole-graph initialization as a 'never updated' counter
            // will not perform its 'minimal update guard' duty and every call will end up getting though, performing duplicate work
            // over Save/UseCachedPose boundaries etc.
            // This is OK because CacheBones is actually called before updating the graph anyway after whole-graph initialization
                ConditionallyCacheBonesForState(NewStateIndex, Context);

bForceReset is assigned bAlwaysResetOnEntry earlier.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .