FAITestHelpers::GetWorld

Certain blueprints (like level blueprints) require a level outer, and for certain actions we need a level actor selected.

Windows
MacOS
Linux

References

Module

AITestSuite

Header

/Engine/Source/Developer/AITestSuite/Public/AITestsCommon.h

Include

#include "AITestsCommon.h"

Source

/Engine/Source/Developer/AITestSuite/Private/Tests/AITestsCommon.cpp

Syntax

namespace FAITestHelpers
{
    UWorld * FAITestHelpers::GetWorld()
}

Remarks

Certain blueprints (like level blueprints) require a level outer, and for certain actions we need a level actor selected. This utility function provides an easy way to grab the world (which has a level that we can use for these purposes).

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss