Everything here worked and compiled fine but I’m just confused that isn’t GetWorld() suppose to be from class UActorComponent?
Why it suggested me to include AITestCommon.h to use FAITestHelpers::GetWorld()?
Can someone please explain this for me.
Everything here worked and compiled fine but I’m just confused that isn’t GetWorld() suppose to be from class UActorComponent?
Why it suggested me to include AITestCommon.h to use FAITestHelpers::GetWorld()?
Can someone please explain this for me.
I’m not sure what feature/plugin is giving that suggestion but its heuristics seem to be confused.
AITesteHelpers class does have a GetWorld() method that is useful for testing purposes: “Certain blueprints (like level blueprints) require a level outer, and for certain actions we need a level actor selected.” See documentation.
I doubt there’s much you can do about this. It’s essentially a tool that’s telling you “hey I see you didn’t fully qualify the scope of this function call but I found a class which contains a function with this name - would you like to use it?”.
Yes, I suppose it is an Error from Resharper which could be ignored.