I wonder if is this possible to have replicated variables in classes that derives from AnimInstance?
Here's what I have so far (it doesn't work tho :/)
class THUNDER2305_API USoldierAnimInstance : public UAnimInstance
virtual void NativeUpdateAnimation(float DeltaSeconds) override;
CachedYaw = -1.f;
void USoldierAnimInstance::GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const
void USoldierAnimInstance::NativeUpdateAnimation(float DeltaSeconds)
if (TryGetPawnOwner() && TryGetPawnOwner()->Role >= ROLE_Authority)
CachedYaw = 5.f;
Any ideas why this doesn't work and how to fix that? Btw. UE4.8.1 here.
Thanks in advance.
Jul 11 '15 at 02:28 PM
in C++ Programming