Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 GetLifetimeReplicatedProps
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Takain
New Member

2 Posts

Posted - Aug 28 2018 :  2:35:37 PM  Show Profile  Reply with Quote
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)

Edited by - Takain on Aug 28 2018 2:46:24 PM

ChrisG
Whole Tomato Software

USA
299 Posts

Posted - Aug 28 2018 :  3:29:50 PM  Show Profile  Reply with Quote
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?
Go to Top of Page

Takain
New Member

2 Posts

Posted - Aug 30 2018 :  08:26:57 AM  Show Profile  Reply with Quote
Sounds like a good idea
Go to Top of Page

ChrisG
Whole Tomato Software

USA
299 Posts

Posted - Aug 30 2018 :  1:17:50 PM  Show Profile  Reply with Quote
Opened case 118838. Thanks for the suggestion!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000