Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsObservations
References
| Module | LearningAgents |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsObservations.h |
| Include | #include "LearningAgentsObservations.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Private/LearningAgentsObservations.cpp |
UFUNCTION (BlueprintPure, Category="LearningAgents",
Meta=(AdvancedDisplay=4, DefaultToSelf="VisualLoggerListener"))
static FLearningAgentsObservationObjectElement MakeLocationAlongSplineObservation
(
ULearningAgentsObservationObject * Object,
const USplineComponent * SplineComponent,
const float DistanceAlongSpline,
const FTransform RelativeTransform,
const FName Tag,
const bool bVisualLoggerEnabled,
ULearningAgentsManagerListener * VisualLoggerListener,
const int32 VisualLoggerAgentId,
const FVector VisualLoggerLocation,
const FLinearColor VisualLoggerColor
)
Remarks
Make a new location along spline observation. The newly created observation object element.
Parameters
| Name | Description |
|---|---|
| Object | The Observation Object |
| SplineComponent | The spline to observe. |
| DistanceAlongSpline | The distance along that spline. |
| RelativeTransform | The transform the provided location should be encoded relative to. |
| Tag | The tag of the corresponding observation. Must match the tag given during Specify. |
| bVisualLoggerEnabled | When true, debug data will be sent to the visual logger. |
| VisualLoggerListener | The listener object which is making this observation. This must be set to use logging. |
| VisualLoggerAgentId | The agent id associated with this observation. |
| VisualLoggerLocation | A location for the visual logger information in the world. |
| VisualLoggerColor | The color for the visual logger display. |