Navigation
API > API/Plugins > API/Plugins/MLAdapter > API/Plugins/MLAdapter/Sensors
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMLAdapterAgentElement
- UMLAdapterSensor
- UMLAdapterSensor_AIPerception
References
| Module | MLAdapter |
| Header | /Engine/Plugins/AI/MLAdapter/Source/MLAdapter/Public/Sensors/MLAdapterSensor_AIPerception.h |
| Include | #include "Sensors/MLAdapterSensor_AIPerception.h" |
Syntax
UCLASS&40;Blueprintable&41;
class UMLAdapterSensor_AIPerception : public UMLAdapterSensor
Remarks
When applied to a player controller will create an AIPerception component for that player and plug it into the AIPerceptionSystem. The sensor will report information gathered by the perception system on the behalf of this agent. Note that the world needs to be configured to allow AI Systems to be created
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bSenseOnlyChanges | When set to true will only gather perception "delta" meaning consecutive updates will consist of new perception information. | |
| uint32: 1 | bVectorMode | ||
| TArray< FTargetRecord > | CachedTargets | ||
| float | MaxStimulusAge | ||
| TObjectPtr< UAIPerceptionComponent > | PerceptionComponent | ||
| float | PeripheralVisionAngleDegrees | ||
| ESortType | TargetsSortType | ||
| uint16 | TargetsToSenseCount |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMLAdapterSensor_AIPerception
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | GetViewPoint
(
AActor& Avatar, |
||
| float | Sanify
(
const float DegreeAngles |
||
| FRotator | Sanify
(
const FRotator Rotator |
Overridden from UMLAdapterSensor
| Type | Name | Description | |
|---|---|---|---|
| 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 |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FTargetRecord |
Enums
| Type | Name | Description | |
|---|---|---|---|
| ESortType |
See Also
UAIPerceptionComponent::ProcessStimuli
Server.Configure mz