animation.sample() usage

Hi I don't understand exacltly what does this function, but seems that it counld be something I'm looking for. Could someone tell me the concrete usage? Thanks!!

It forces to sample current state of animations. "Sample animations" means: put character in the position defined by animation states. Sampling always happens between Update and LateUpdate automatically, but in some cases you might want to sample animations yourself. My most common case: I want to put character in pose of first frame some specific animation on Start, so I would do something like this:

void Start()
{
    AnimationState state = animation["Aim"];
    state.enabled = true;
    state.weight = 1;
    state.normalizedTime = 0;

    animation.Sample();
}