Navigation
API > API/Plugins > API/Plugins/MLAdapter > API/Plugins/MLAdapter/UMLAdapterSession
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool RequestAvatarForAgent
(
FMLAdapter::FAgentID& AgentID, |
Calls RequestAvatarForAgent(UMLAdapterAgent& Agent, ...) after looking up the agent by its ID. | Sessions/MLAdapterSession.h | |
virtual bool RequestAvatarForAgent
(
UMLAdapterAgent& Agent, |
Finds a suitable avatar in InWorld (or CachedWorld, if InWorld is null) for given agent, as specified by FMLAdapterAgentConfig.AvatarClass and confirmed by Agent->IsSuitableAvatar call. | Sessions/MLAdapterSession.h |
RequestAvatarForAgent(FMLAdapter::FAgentID &, UWorld *)
Description
Calls RequestAvatarForAgent(UMLAdapterAgent& Agent, ...) after looking up the agent by its ID.
| Name | RequestAvatarForAgent |
| Type | function |
| Header File | /Engine/Plugins/AI/MLAdapter/Source/MLAdapter/Public/Sessions/MLAdapterSession.h |
| Include Path | #include "Sessions/MLAdapterSession.h" |
| Source | /Engine/Plugins/AI/MLAdapter/Source/MLAdapter/Private/Sessions/MLAdapterSession.cpp |
bool RequestAvatarForAgent
(
FMLAdapter::FAgentID & AgentID,
UWorld * InWorld
)
RequestAvatarForAgent(UMLAdapterAgent &, UWorld *, const bool)
Description
Finds a suitable avatar in InWorld (or CachedWorld, if InWorld is null) for given agent, as specified by FMLAdapterAgentConfig.AvatarClass and confirmed by Agent->IsSuitableAvatar call. If no suitable avatar is found this agent will be added to "waiting list" (AwaitingAvatar)
| Name | RequestAvatarForAgent |
| Type | function |
| Header File | /Engine/Plugins/AI/MLAdapter/Source/MLAdapter/Public/Sessions/MLAdapterSession.h |
| Include Path | #include "Sessions/MLAdapterSession.h" |
| Source | /Engine/Plugins/AI/MLAdapter/Source/MLAdapter/Private/Sessions/MLAdapterSession.cpp |
virtual bool RequestAvatarForAgent
(
UMLAdapterAgent & Agent,
UWorld * InWorld,
const bool bForceSearch
)
True if an avatar has been assigned. False otherwise.
Parameters
| Name | Remarks |
|---|---|
| bForceSearch | if true will ignore whether the Agent is already waiting in AwaitingAvatar and will perform the search right away. Note that the Agent might still end up in AwaitingAvatar if there's no suitable avatars available |