x

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. 

DECLARE_DYNAMIC_DELEGATE_Retval doesn't compile

Hey all, I'm trying to create a dynamic delegate with return value, but it won't compile. It's giving me the old "missing ;" error that I'm sure we've all seen a thousand times.

DECLARE_DELEGATE_RetVal_OneParam(FReturnStruct, FExampleDelegate, FExampleParam) works, but

DECLARE_DYNAMIC_DELEGATE_RetVal_OneParam(FReturnStruct, FExampleDelegate, FExampleParam, ExampleParam) does not.

My headers are:

 #include <UObject/ObjectMacros.h>
 #include <UObject/ScriptMacros.h>
 #include <UObject/ScriptDelegates.h>
 #include "nXinclude/nXhumanEventAggregator.h"
 #include "nXinclude/FlowControl.h"
 #include <memory>
 #include "FFunctionStructs.h"
 #include "FStateStructs.h"
 #include "nXhuman.generated.h"
 

I have several dynamic multicast delegates, with varying parameters, which are all compiling in the same header file. I'd like to be able to expose this to blueprints, if possible, since the callback I am trying to create will be eventually used by an engineer who is very familiar with blueprints, but not C++.

Thanks to anyone who can help.

Product Version: UE 4.15
Tags:
more ▼

asked Mar 30 '17 at 07:35 PM in Bug Reports

avatar image

jamestillerunc
0 3 11 8

avatar image Tim C ♦♦ STAFF May 12 '17 at 02:04 PM

Hi jamestillerunc,

Sorry for the delayed response to your post. Are you still having trouble with this issue? I tried to recreate this issue in 4.15.2, but was unable to do so. I used the following declaration: DECLARE_DYNAMIC_DELEGATE_RetVal_OneParam(FMyStruct, FNewDelegate, int32, TheParam);

Where does the compiler show that the error is occurring?

Tim

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

1 answer: sort voted first

Hi jamestillerunc,

We have not heard back from you for a while. Do you still need help with this issue? I will be marking this post as resolved for internal tracking purposes, but please feel free to add a comment and re-open this post if you need any additional assistance.

Tim

more ▼

answered Jun 13 '17 at 08:13 PM

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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