Using spaces in “Event Dispatchers” (delegates) causes Native Build to Fail.
Reproduce:
- Create a blueprint, like a character.
- Add an Event Dispatcher, named like “Update a Bar”
- Package game, checking box to Nativize blueprint code.
Get error, telling you source code is messed up, see the following (note spaces):
DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FUpdate a Bar__Example_Character_C__pf__MulticastDelegate , FName , bpp__BarxID__pfT, float , bpp__NewxPercentage__pfT);