How can I use UFUNCTION(Exec) from within UActorComponent?
I am trying to enable a debug flag on my component using the Console
I am able to see my function by flagging it as EXEC, however it does not execute when run.
Any solutions or work-arounds would be greatly appreciated.
Thanks in advance :)
For Devs: If possible, I would also like to request further Documentation on the Exec feature. The doc states it only works in some classes, but that information is unavailable so far as I can tell.
That doesnt work by default, you'd have to hook it up yourself. To do so you could override ProcessConsoleExec on your player pawn to forward it to your component (just find the components you want and call ProcessConsoleExec on them if the super returns false
answered May 19 '14 at 09:58 PM
[Epic]Ben Zeigler STAFF
I spoke with a member of our Documentation team, and they confirmed that the page for the Exec function specifier is one that they have targeted for improvement. They were also able to provide me with a list of classes that look for exec functions, and those classes are: Pawn, PlayerController, CheatManager, GameMode, PlayerInput, and HUD. I do not have any information regarding what you can try to do as a work around for this. Would you be able to provide more details regarding exactly what end result you are looking for, and how you are currently trying to achieve that (some code snippets would be great)?
answered May 19 '14 at 03:09 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here