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
 Create from usage for delegates
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

geno
Starting Member

Germany
1 Posts

Posted - Oct 02 2019 :  2:28:47 PM  Show Profile  Reply with Quote
Hi,

I'd like to see support added for creating delegate declaration/implementation from usage. At least it looks like this is not supported at the moment.

Example:
PlayerInputComponent->BindAxis("MoveForward", this, &AMyCharacterBase::MoveForward);

The code highlighted in red is the delegate I'd like to create from usage using the Alt-Shift-Q shortcut.

feline
Whole Tomato Software

United Kingdom
16105 Posts

Posted - Oct 04 2019 :  4:51:54 PM  Show Profile  Reply with Quote
Can you explain what you mean by a delegate in this case? I am assuming you are talking about C++, but a quick search to see what you are doing suggests 7 different ways of having a "delegate":

https://stackoverflow.com/questions/9568150/what-is-a-c-delegate

what is the declaration for the "BindAxis" function?

Is this the Unreal Engine function:

class UInputComponent
{
	template<class UserClass>
	FInputAxisBinding& BindAxis( const FName AxisName, UserClass* Object, typename FInputAxisHandlerSignature::TUObjectMethodDelegate< UserClass >::FMethodPtr Func )
}

or something else that just has a similar name?

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2019 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000