Navigation
API > API/Plugins > API/Plugins/MLAdapter > API/Plugins/MLAdapter/Sensors
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMLAdapterAgentElement
- UMLAdapterSensor
- UMLAdapterSensor_Attribute
References
| Module | MLAdapter |
| Header | /Engine/Plugins/AI/MLAdapter/Source/MLAdapter/Public/Sensors/MLAdapterSensor_Attribute.h |
| Include | #include "Sensors/MLAdapterSensor_Attribute.h" |
Syntax
UCLASS&40;Blueprintable&41;
class UMLAdapterSensor_Attribute : public UMLAdapterSensor
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< FName > | AttributeNames | ||
| TArray< FGameplayAttributeData * > | Attributes | Valid only as long as AttributeSet != nullptr | |
| TObjectPtr< UAttributeSet > | AttributeSet | ||
| TArray< float > | Values |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMLAdapterSensor_Attribute
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | BindAttributes
(
AActor& Actor |
||
| void | SetAttributes
(
TArray< FString >& InAttributeNames |
Overridden from UMLAdapterSensor
| Type | Name | Description | |
|---|---|---|---|
| bool | ConfigureForAgent
(
UMLAdapterAgent& Agent |
True if config was successful. | |
| void | |||
| void | SenseImpl
(
const float DeltaTime |
Called from Sense based on TickPolicy. |
Overridden from UMLAdapterAgentElement
| Type | Name | Description | |
|---|---|---|---|
| void | Called before actuator's destruction. | ||
| TSharedPtr< FMLAdapter::FSpace > | |||
| void | OnAvatarSet
(
AActor* Avatar |
||
| void |