Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UWorld
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Get the first valid local player via the first player controller. | Engine/World.h | ||
| Get the first valid local player via the first player controller. | Engine/World.h |
GetFirstLocalPlayerFromController()
Description
Get the first valid local player via the first player controller.
May Return NULL if the cast fails.
| Name | GetFirstLocalPlayerFromController |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/World.h |
| Include Path | #include "Engine/World.h" |
template<class T>
T * GetFirstLocalPlayerFromController() const
Pointer to the first valid ULocalPlayer cast to the template type, or NULL if there is not one.
GetFirstLocalPlayerFromController()
Description
Get the first valid local player via the first player controller.
| Name | GetFirstLocalPlayerFromController |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/World.h |
| Include Path | #include "Engine/World.h" |
| Source | /Engine/Source/Runtime/Engine/Private/World.cpp |
ULocalPlayer * GetFirstLocalPlayerFromController() const
Pointer to the first valid ULocalPlayer, or NULL if there is not one.