Download

Need some help with a C++ Function Library

how do I reference the object to my C++ function Library?
Every Tutorial I found, Does not have the object target self.
what should I put for the object ref?

Add this meta specifier to your library functions:

UFUNCTION(meta=(WorldContext="WorldContextObject"))

It’s what UGameplayStatics and the like use to make the world context object default to the object’s implementation of GetWorld.

1 Like