Cannot call Macro Library's macro in Actor Component's BP

I made a blueprint macro library and a macro, sat GetTestValue().

When I try to call it in an Actor Component derived class’s event graph, I cant find GetTestValue().

But when I try to call it in an Actor derived class’s event graph, GetTestValue() successfully popped out.

cannot attach image right now, not sure why…anyway I hope text description is enough

Hi marsonmao,

Is your macro library based on Actor? Actor Component isn’t derived from Actor, so it can’t access any macros from a macro library based on Actor. You’ll need to make sure your macro library is based on Actor Component, or Object, for this to work.

1 Like

Yes it is based on Actor, and yes I tried to base on Object then it works! Thanks for quick and correct answer!

Perfect thanks for this.