You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
37 lines
1.1 KiB
C++
37 lines
1.1 KiB
C++
|
|
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
|
||
|
|
|
||
|
|
#include "PhATAnimInstance.h"
|
||
|
|
#include "PhATAnimInstanceProxy.h"
|
||
|
|
|
||
|
|
/////////////////////////////////////////////////////
|
||
|
|
// UPhATAnimInstance
|
||
|
|
/////////////////////////////////////////////////////
|
||
|
|
|
||
|
|
UPhATAnimInstance::UPhATAnimInstance(const FObjectInitializer& ObjectInitializer)
|
||
|
|
: Super(ObjectInitializer)
|
||
|
|
{
|
||
|
|
bUseMultiThreadedAnimationUpdate = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
FAnimInstanceProxy* UPhATAnimInstance::CreateAnimInstanceProxy()
|
||
|
|
{
|
||
|
|
return new FPhATAnimInstanceProxy(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
bool UPhATAnimInstance::IsPlayingAnimation() const
|
||
|
|
{
|
||
|
|
const FPhATAnimInstanceProxy& AnimInstProxy = GetProxyOnGameThread<FPhATAnimInstanceProxy>();
|
||
|
|
return AnimInstProxy.IsPlayingAnimation();
|
||
|
|
}
|
||
|
|
|
||
|
|
void UPhATAnimInstance::SetAnimationSequence(UAnimSequence* AnimSequence)
|
||
|
|
{
|
||
|
|
FPhATAnimInstanceProxy& AnimInstProxy = GetProxyOnGameThread<FPhATAnimInstanceProxy>();
|
||
|
|
return AnimInstProxy.SetAnimationSequence(AnimSequence);
|
||
|
|
}
|
||
|
|
|
||
|
|
void UPhATAnimInstance::SetPlayRate(float PlayRate)
|
||
|
|
{
|
||
|
|
FPhATAnimInstanceProxy& AnimInstProxy = GetProxyOnGameThread<FPhATAnimInstanceProxy>();
|
||
|
|
return AnimInstProxy.SetPlayRate(PlayRate);
|
||
|
|
}
|