Hello, just something i would love if visual assist did for me, not really necessary but would be a good addition:
When using with UE4 and right clicked on a UPROPERTY with Replicated or ReplicatedUsing keyword, let it implement automatically the GetLifetimeReplicatedProps function:
class AMyClass
[...]
UPROPERTY(Replicated)
int32 MyVariable
would generate on the cpp:
void AMyClass::GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const
{
Super::GetLifetimeReplicatedProps(OutLifetimeProps);
DOREPLIFETIME(AMyClass, MyVariable)
}
and in case the function already exist, just add a new line to the function:
DOREPLIFETIME(AMyClass, MySecondVariable)