How to get Game Instance in Macro Library?

If I want to have a generalized Macro Library that can be accessed from both Widgets and Actors (components), it seems I can’t access Game Instance because the Object class can’t access game instance?


Maybe I’m using the wrong class to create the macro library with though… but what should I be using? (I’ve noticed that if I’ve chosen the Actor class, I can’t change the parent class to Widget in the Macro Library either… I have to create a new asset and then cut and paste the individual macros.)

1 Like

I think it would be better to use a Function Library WTF Is? Blueprint Function Library in Unreal Engine 4 - YouTube

1 Like

I have those too, but in this instance, I really want Macros for several reasons.

It feels weird to copy and paste the same Macro to several libraries just to be able to access them from different classes…

1 Like