Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsObservations
Description
Validates that the given observation object matches the schema. Will log errors on objects that don't match.
| Name | ValidateObservationObjectMatchesSchema |
| Type | function |
| Header File | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsObservations.h |
| Include Path | #include "LearningAgentsObservations.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Private/LearningAgentsObservations.cpp |
UFUNCTION (BlueprintPure=false, Category="LearningAgents")
static bool ValidateObservationObjectMatchesSchema
(
const ULearningAgentsObservationSchema * Schema,
const FLearningAgentsObservationSchemaElement SchemaElement,
const ULearningAgentsObservationObject * Object,
const FLearningAgentsObservationObjectElement ObjectElement
)
true if the object matches the schema
Parameters
| Name | Remarks |
|---|---|
| Schema | Observation Schema |
| SchemaElement | Observation Schema Element |
| Object | Observation Object |
| ObjectElement | Observation Object Element |