Force blueprint function override as function instead of event
I've written a function in c++ that takes a struct reference as an input, with the intent to modify values inside the struct.
The issue is that since the function has no output, attempting to override the function in a blueprint creates an event instead of a function. Using an event for this causes a warning, "No value will be returned by reference. Parameter 'oBuff'."
Is there a tag to force a function with no output to be overridden as a blueprint function?
Currently a workaround is to add an output to the c++ declaration, override it in the blueprint as a function, then remove the output parameter.
asked Oct 29 '15 at 04:55 AM in Blueprint Scripting
Good news - I've just added a metadata option to the build we use for GroundBranch to do just this.
Guess I'll see about creating PR.
answered Sep 02 '16 at 05:09 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here