C++动画蓝图问题。
请问这段动画蓝图写成C++要怎么写呢?
如果有文档的话。也可以,谢谢。
本帖最后由 mknmknmk 于 2017-12-21 17:05 编辑
#include "MyAnimInstance.h"
#include "Animation/AnimInstance.h"
#include "GameFramework/Character.h"
#include "GameFramework/PawnMovementComponent.h"
void UMyAnimInstance::NativeUpdateAnimation(float DeltaSeconds) {
ACharacter * pawnOwner=Cast<ACharacter> (TryGetPawnOwner());
bool isJumping = false;
if (pawnOwner) {
isJumping = pawnOwner->GetMovementComponent()->IsFalling();
float velocitylength = pawnOwner->GetVelocity().Size();
bool isMove = velocitylength < 0.2f;
}
}
mknmknmk 发表于 2017-12-21 16:58
#include "MyAnimInstance.h"
#include "Animation/AnimInstance.h"
#include "GameFramework/Character.h" ...
:)非常感谢
页:
[1]