Getting the player controller in a macro library?

What’s a workaround for not seeing this in a macro library?

image

I use it all the time in both UMG widgets, actors and components, so now I want to create a macro that does some things with it that everyone can use… but even if I switch off the context sensitive option I can’t see it in a macro library…

1 Like

You ever figure this out?

That all depends on the parent class of the macro library.

1 Like

Ah thanks - I think I went with Object to make it the most versitile. What might I use if I wanted the PlayerController?

Anything where you can use playercontroller: actor, widget, gamemode, gameinstance, …

It also depends on where you’re going to use the macro. So, for example, if the parent class of the macro is a widget, then only widget and above can use it. If the parent is an actor, then only actors, pawns and characters can use it. And so on.

1 Like