Navigation
API > API/Plugins > API/Plugins/LearningAgents
Inheritance Hierarchy
- UBlueprintFunctionLibrary
- ULearningAgentsActions
References
| Module | LearningAgents |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsActions.h |
| Include | #include "LearningAgentsActions.h" |
Syntax
UCLASS ()
class ULearningAgentsActions : public UBlueprintFunctionLibrary
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | GetAngleAction
(
float& OutAngle, |
Get the value for an angle action. Returned angle is in degrees. | |
| bool | GetAngleActionRadians
(
float& OutAngle, |
Get the value for an angle action. Returned angle is in radians. | |
| bool | GetBitmaskAction
(
int32& OutBitmaskValue, |
Get the bitmask value of a bitmask action. | |
| bool | GetBoolAction
(
bool& bOutValue, |
Get the value for a bool action. | |
| bool | GetContinuousAction
(
TArray< float >& OutValues, |
Get the values of a continuous action. | |
| bool | GetContinuousActionNum
(
int32& OutNum, |
Get the number of values in a continuous action. | |
| bool | GetContinuousActionToArrayView
(
TArrayView< float > OutValues, |
Get the values of a continuous action. The OutValues ArrayView must be the correct size. | |
| bool | GetDirectionAction
(
FVector& OutDirection, |
Get the value for a direction action. | |
| bool | GetEitherAction
(
ELearningAgentsEitherAction& OutEither, |
Get the sub-action of an either action. | |
| bool | GetEncodingAction
(
FLearningAgentsActionObjectElement& OutElement, |
Get the sub-action of an encoding action. | |
| bool | GetEnumAction
(
uint8& OutEnumValue, |
Get the enum value of an enum action. | |
| bool | GetExclusiveDiscreteAction
(
int32& OutIndex, |
Get the index for an exclusive discrete action. | |
| bool | GetExclusiveUnionAction
(
FName& OutElementName, |
Get the chosen sub-action for an exclusive union action. | |
| bool | GetFloatAction
(
float& OutValue, |
Get the value for a float action. | |
| bool | GetInclusiveDiscreteAction
(
TArray< int32 >& OutIndices, |
Get the indices for an inclusive discrete action. | |
| bool | GetInclusiveDiscreteActionNum
(
int32& OutNum, |
Get the number of indices for an inclusive discrete action. | |
| bool | GetInclusiveDiscreteActionToArrayView
(
TArrayView< int32 > OutIndices, |
Get the indices for an inclusive discrete action. | |
| bool | GetInclusiveUnionAction
(
TMap< FName, FLearningAgentsActionObjectElement >& OutElements, |
Get the chosen sub-actions for an inclusive union action. | |
| bool | GetInclusiveUnionActionNum
(
int32& OutNum, |
Get the number of sub-actions for an inclusive union action. | |
| bool | GetInclusiveUnionActionToArrays
(
TArray< FName >& OutElementNames, |
Get the chosen sub-actions for an inclusive union action. | |
| bool | GetInclusiveUnionActionToArrayViews
(
TArrayView< FName > OutElementNames, |
Get the chosen sub-actions for an inclusive union action. | |
| bool | GetLocationAction
(
FVector& OutLocation, |
Get the value for a location action. | |
| bool | GetNullAction
(
const ULearningAgentsActionObject* Object, |
Get a null action. | |
| bool | GetOptionalAction
(
ELearningAgentsOptionalAction& OutOption, |
Get the sub-action of an option action. | |
| bool | GetPairAction
(
FLearningAgentsActionObjectElement& OutKey, |
Get the sub-actions of a pair action. | |
| bool | GetRotationAction
(
FRotator& OutRotation, |
Get the value for a rotation action. | |
| bool | GetRotationActionAsQuat
(
FQuat& OutRotation, |
Get the value for a rotation action as a quaternion. | |
| bool | GetScaleAction
(
FVector& OutScale, |
Get the value for a scale action. | |
| bool | GetStaticArrayAction
(
TArray< FLearningAgentsActionObjectElement >& OutElements, |
Get the entries of a static array action. | |
| bool | GetStaticArrayActionNum
(
int32& OutNum, |
Get the number of entries in a static array action. | |
| bool | GetStaticArrayActionToArrayView
(
TArrayView< FLearningAgentsActionObjectElement > OutElements, |
Get the entries of a static array action. The OutElements ArrayView must be the correct size. | |
| bool | GetStructAction
(
TMap< FName, FLearningAgentsActionObjectElement >& OutElements, |
Get the sub-actions for a struct action. | |
| bool | GetStructActionElement
(
FLearningAgentsActionObjectElement& OutElement, |
Get the sub-action given its name for a struct action. | |
| bool | GetStructActionNum
(
int32& OutNum, |
Get the number of sub-actions for a struct action. | |
| bool | GetStructActionToArrays
(
TArray< FName >& OutElementNames, |
Get the sub-actions for a struct action. | |
| bool | GetStructActionToArrayViews
(
TArrayView< FName > OutElementNames, |
Get the sub-actions for a struct action. | |
| bool | GetTransformAction
(
FTransform& OutTransform, |
Get the value for a transform action. | |
| bool | GetVelocityAction
(
FVector& OutVelocity, |
Get the value for a velocity action. | |
| void | LogAction
(
const ULearningAgentsActionObject* Object, |
Logs an Action Object Element. Useful for debugging. | |
| FLearningAgentsActionObjectElement | MakeAngleAction
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakeAngleActionRadians
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakeBitmaskAction
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakeBoolAction
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakeContinuousAction
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakeContinuousActionFromArrayView
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakeDirectionAction
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakeEitherAAction
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakeEitherAction
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakeEitherBAction
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakeEncodingAction
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakeEnumAction
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakeExclusiveDiscreteAction
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakeExclusiveUnionAction
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakeFloatAction
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakeInclusiveDiscreteAction
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakeInclusiveDiscreteActionFromArrayView
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakeInclusiveUnionAction
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakeInclusiveUnionActionFromArrays
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakeInclusiveUnionActionFromArrayViews
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakeLocationAction
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakeNullAction
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakeOptionalAction
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakeOptionalNullAction
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakeOptionalValidAction
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakePairAction
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakeRotationAction
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakeRotationActionFromQuat
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakeScaleAction
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakeStaticArrayAction
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakeStaticArrayActionFromArrayView
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakeStructAction
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakeStructActionFromArrays
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakeStructActionFromArrayViews
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakeTransformAction
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionObjectElement | MakeVelocityAction
(
ULearningAgentsActionObject* Object, |
||
| FLearningAgentsActionSchemaElement | SpecifyAngleAction
(
ULearningAgentsActionSchema* Schema, |
Specifies a new angle action. | |
| FLearningAgentsActionSchemaElement | SpecifyBitmaskAction
(
ULearningAgentsActionSchema* Schema, |
Specifies a new bitmask action. | |
| FLearningAgentsActionSchemaElement | SpecifyBitmaskActionFromArray
(
ULearningAgentsActionSchema* Schema, |
Specifies a new bitmask action. | |
| FLearningAgentsActionSchemaElement | SpecifyBitmaskActionFromArrayView
(
ULearningAgentsActionSchema* Schema, |
Specifies a new bitmask action. | |
| FLearningAgentsActionSchemaElement | SpecifyBoolAction
(
ULearningAgentsActionSchema* Schema, |
Specifies a new bool action. This represents an action which is either true or false. | |
| FLearningAgentsActionSchemaElement | SpecifyContinuousAction
(
ULearningAgentsActionSchema* Schema, |
Specifies a new continuous action. | |
| FLearningAgentsActionSchemaElement | SpecifyDirectionAction
(
ULearningAgentsActionSchema* Schema, |
Specifies a new direction action. | |
| FLearningAgentsActionSchemaElement | SpecifyEitherAction
(
ULearningAgentsActionSchema* Schema, |
Specifies a new either action. This represents an action which is either action A or action B. | |
| FLearningAgentsActionSchemaElement | SpecifyEncodingAction
(
ULearningAgentsActionSchema* Schema, |
Specifies a new encoding action. | |
| FLearningAgentsActionSchemaElement | SpecifyEnumAction
(
ULearningAgentsActionSchema* Schema, |
Specifies a new enum action. | |
| FLearningAgentsActionSchemaElement | SpecifyEnumActionFromArray
(
ULearningAgentsActionSchema* Schema, |
Specifies a new enum action. | |
| FLearningAgentsActionSchemaElement | SpecifyEnumActionFromArrayView
(
ULearningAgentsActionSchema* Schema, |
Specifies a new enum action. | |
| FLearningAgentsActionSchemaElement | SpecifyExclusiveDiscreteAction
(
ULearningAgentsActionSchema* Schema, |
Specifies a new exclusive discrete action. | |
| FLearningAgentsActionSchemaElement | SpecifyExclusiveDiscreteActionFromArrayView
(
ULearningAgentsActionSchema* Schema, |
Specifies a new exclusive discrete action. | |
| FLearningAgentsActionSchemaElement | SpecifyExclusiveUnionAction
(
ULearningAgentsActionSchema* Schema, |
Specifies a new exclusive union action. | |
| FLearningAgentsActionSchemaElement | SpecifyExclusiveUnionActionFromArrays
(
ULearningAgentsActionSchema* Schema, |
Specifies a new exclusive union action. | |
| FLearningAgentsActionSchemaElement | SpecifyExclusiveUnionActionFromArrayViews
(
ULearningAgentsActionSchema* Schema, |
Specifies a new exclusive union action. | |
| FLearningAgentsActionSchemaElement | SpecifyFloatAction
(
ULearningAgentsActionSchema* Schema, |
Specifies a new float action. | |
| FLearningAgentsActionSchemaElement | SpecifyInclusiveDiscreteAction
(
ULearningAgentsActionSchema* Schema, |
Specifies a new inclusive discrete action. | |
| FLearningAgentsActionSchemaElement | SpecifyInclusiveDiscreteActionFromArrayView
(
ULearningAgentsActionSchema* Schema, |
Specifies a new inclusive discrete action. | |
| FLearningAgentsActionSchemaElement | SpecifyInclusiveUnionAction
(
ULearningAgentsActionSchema* Schema, |
Specifies a new inclusive union action. | |
| FLearningAgentsActionSchemaElement | SpecifyInclusiveUnionActionFromArrays
(
ULearningAgentsActionSchema* Schema, |
Specifies a new inclusive union action. | |
| FLearningAgentsActionSchemaElement | SpecifyInclusiveUnionActionFromArrayViews
(
ULearningAgentsActionSchema* Schema, |
Specifies a new inclusive union action. | |
| FLearningAgentsActionSchemaElement | SpecifyLocationAction
(
ULearningAgentsActionSchema* Schema, |
Specifies a new location action. | |
| FLearningAgentsActionSchemaElement | SpecifyNullAction
(
ULearningAgentsActionSchema* Schema, |
Specifies a new null action. | |
| FLearningAgentsActionSchemaElement | SpecifyOptionalAction
(
ULearningAgentsActionSchema* Schema, |
Specifies a new optional action. This represents an action which may or may not be generated. | |
| FLearningAgentsActionSchemaElement | SpecifyPairAction
(
ULearningAgentsActionSchema* Schema, |
Specifies a new pair action. | |
| FLearningAgentsActionSchemaElement | SpecifyRotationAction
(
ULearningAgentsActionSchema* Schema, |
Specifies a new rotation action. | |
| FLearningAgentsActionSchemaElement | SpecifyScaleAction
(
ULearningAgentsActionSchema* Schema, |
Specifies a new scale action. | |
| FLearningAgentsActionSchemaElement | SpecifyStaticArrayAction
(
ULearningAgentsActionSchema* Schema, |
Specifies a new static array action. | |
| FLearningAgentsActionSchemaElement | SpecifyStructAction
(
ULearningAgentsActionSchema* Schema, |
Specifies a new struct action. | |
| FLearningAgentsActionSchemaElement | SpecifyStructActionFromArrays
(
ULearningAgentsActionSchema* Schema, |
Specifies a new struct action. | |
| FLearningAgentsActionSchemaElement | SpecifyStructActionFromArrayViews
(
ULearningAgentsActionSchema* Schema, |
Specifies a new struct action. | |
| FLearningAgentsActionSchemaElement | SpecifyTransformAction
(
ULearningAgentsActionSchema* Schema, |
Specifies a new transform action. | |
| FLearningAgentsActionSchemaElement | SpecifyVelocityAction
(
ULearningAgentsActionSchema* Schema, |
Specifies a new velocity action. | |
| bool | ValidateActionObjectMatchesSchema
(
const ULearningAgentsActionSchema* Schema, |
Validates that the given action object matches the schema. |