Montage_Stop

我用Pressed和Released绑定了一个自定义的劈砍函数,使用Montsge_Stop发现停止按键之后并没有停止播放蒙太奇,请问是什么原因呢?

void AOneCharacter::hacking()
{
if (hackingMontageStart != NULL)
{
UAnimInstance* AnimInstance = Mesh1P->GetAnimInstance();

    if (AnimInstance != NULL)
    {
        AnimInstance->Montage_Play(hackingMontageStart,1.0f);
    }
}

}

void AOneCharacter::Stop
hacking()
{
if (hackingMontageStop != NULL)
{
UAnimInstance* AnimInstance = Mesh1P->GetAnimInstance();

    if (AnimInstance != NULL)
    {
        AnimInstance->Montage_Stop(0.0f,hackingMontageStop);

}
}
}