So I have a thing which is not an Actor but it require to spawn actors.
The problem is that I cannot use “spawn actor from class” from within a class which is not an actor. it says that I need a reference to the current world context which make sense. but how do I add this reference?
You can grab World from any actor reference. Using the GetWorld() function.
If you’re using Blueprint, simply get a reference to Self actor and attach to world context.