Title explains it. To reproduce:
- Create an actor blueprint.
- Create a method inside this newly created actor blueprint.
- Create a macro library (with Actor as base).
- Create a macro inside the library, with an Exec pin and a reference to the created actor blueprint as inputs.
- Inside the macro, call the method you created.
- Include the macro somewhere in the Actor’s Event Graph (say, in the Tick event).
- Try to compile the actor.
Expected: compiled sucessfully. The macro (should) simply expand to a call of a method that exists within the actor.
Result: fails to compile. Complains about not being able to find the method.
An important note is that child blueprints do not fail to compile if they include the macro (assuming the macro does not have any of their methods).
Thanks in advance.