Methods
ResumePathFollowing
This (optional) method is used when the PathFollowingComponent
enters into this specific NLAPhysicalLink
. It ensures that path-following resumes correctly after the agent exits the link. While exit events will trigger
even without calling this method, they may be unreliable in some cases. Calling ResumePathFollowing
guarantees that the Exit
events for this navigation link are accurately traced and handled.

GetNavigationLinkArrayComponent
Returns the owner NLAComponent
of this navigation link. This allows you to access the parent component that manages the link. The function may return nullptr
, so it is crucial to validate the returned value before attempting to use it.

GetNavigationLinkArraySet
Returns a copy of the FNLASet
structure that was used to create this specific navigation link. This value reflects the latest settings from the NLAComponent
and updates whenever changes are made to the component’s settings.

GetNavLinkModifier

GetNavigationLinkOrigin
Returns the origin point of the navigation link in world space. This value dynamically updates whenever the settings in the NLAComponent
are modified, the component itself moves, or the shape of the spline changes.

GetNavigationLinkPoints
Returns the left and right points of the navigation link in world space. These points define the two endpoints of the link as positioned in the game world.

GetNavigationLinkStartEndPoints
This method works similarly to GetNavigationLinkPoints
but adjusts the returned points based on the direction of the navigation link.
If the direction is set to
Direction::LeftToRight
, the start point will be the left point, and the end point will be the right point.If the direction is set to
Direction::RightToLeft
, the start point will be the right point, and the end point will be the left point.For
Direction::Both
, the method defaults to returning the left point as the start and the right point as the end.
This is particularly useful when the navigation link’s directionality matters for pathfinding or traversal logic.

GetMovingAgents
Returns a map containing all PathFollowingComponents
that are currently using this navigation link.
Key: The
PathFollowingComponent
representing the agent utilizing the link.Value: An
NLAPhysicalLinkMoveStateChangedEvent
structure that provides details about the agent's movement state on the link.
This method is useful for tracking active agents on the navigation link and their current traversal status.

Last updated