Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 GetLifetimeReplicatedProps

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
Takain Posted - Aug 28 2018 : 2:35:37 PM
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)
3   L A T E S T    R E P L I E S    (Newest First)
ChrisG Posted - Aug 30 2018 : 1:17:50 PM
Opened case 118838. Thanks for the suggestion!
Takain Posted - Aug 30 2018 : 08:26:57 AM
Sounds like a good idea
ChrisG Posted - Aug 28 2018 : 3:29:50 PM
Hello Takain,

I like the idea.

Maybe it would make more sense to add the feature to the Shift+Alt+Q menu for the variable name instead. What do you think of that?

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000