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"

Blueprint can't be nativized if a component function with delegate input variable is called

I have been having issues packaging a project with Nativization set to Inclusive. The issue seems to be in passing a delegate from an actor to a function in that actor's component.

Steps to reproduce (tested in 4.20.3):

  1. Create empty project (code or blueprint)

  2. Create an Actor blueprint and an ActorComponent blueprint

  3. In the ActorComponent, create an event dispatcher and a function that calls "Bind Event to DispatcherName". Connect the event pin to the function so that it creates an input variable.

  4. In the Actor, add the created component and call the component's function on BeginPlay. Connect a CustomEvent to the dispatcher pin.

  5. Place actor in map, add map to list of maps to package, set Nativization to Inclusive. Compile and package.

ComponentBP ActorBP

This results in the following log: https://pastebin.com/bZ34cy0U The relevant part of the log being lines 626 - 628. So, it boils down to

Reason: cannot convert from 'ATestActor_C__pf1010915279::FTestComponentDispatcher__pf__TestComponent_C__pf__SinglecastDelegate' to 'const UTestComponent_C__pf1010915279::FTestComponentDispatcher__pf__TestComponent_C__pf__SinglecastDelegate'

The generated CPP file cannot convert the SinglecastDelegate to const SinglecastDelegate. The project packages fine without nativization and functions as intended, so this is clearly a natvization bug. Please let me know if there is a fix.

Product Version: UE 4.20
Tags:
component.png (128.2 kB)
actor.png (178.3 kB)
more ▼

asked Sep 27 '18 at 02:17 PM in Bug Reports

avatar image

Kassym123
97 6 8 10

avatar image Jeff A ♦♦ STAFF Sep 28 '18 at 02:00 PM

Hello,

We've recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

https://epicsupport.force.com/unrealengine/s/

Thanks

avatar image Kassym123 Oct 15 '18 at 01:05 PM

Just in case anyone else has this issue, you can now track it here: https://issues.unrealengine.com/issue/UE-64677

(comments are locked)
10|2000 characters needed characters left

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