Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Engine > UWorld > GetFirstLocalPlayerFromController
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Engine/World.h |
Include | #include "Engine/World.h" |
template<class T>
T &42; GetFirstLocalPlayerFromController&40;&41; const
Remarks
Get the first valid local player via the first player controller.
May Return NULL if the cast fails. Pointer to the first valid ULocalPlayer cast to the template type, or NULL if there is not one.