Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

[Feature Request] Allow Blueprints to create Dynamic (non-multicast) Delegates with retval

I would like to be able to expose a DECLARE_DYNAMIC_DELEGATE_RetVal_OneParam which my designers can implement in blueprint.

It's easy enough to create a function which follows the requirements, but it cannot be assigned (cannot be BlueprintAssignable).

I would use a multicast dynamic delegate BUT I need to be able to return a value (and multicast don't get retval options, for obvious reasons).

Not sure if the canonical method is to use a pass-by-reference value as an argument and use that as output, but that seems incredibly hacky.

 DECLARE_DYNAMIC_DELEGATE_RetVal_OneParam(TArray<float>, FMyDelegate, float, SomeData);
 class Blahblahblah : public AActor
     UPROPERTY( /*BlueprintAssignable*/ )
         FMyDelegate PleaseLetMeAssignThis;
Product Version: UE 4.8
more ▼

asked Aug 11 '15 at 12:22 AM in C++ Programming

avatar image

227 12 17 28

avatar image JonathanLambert May 03 '18 at 07:31 PM

Yes Please.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question