Navigation
API > API/Plugins > API/Plugins/MassAIBehavior
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- USubsystem
- UWorldSubsystem
- UTickableWorldSubsystem
- UMassComponentHitSubsystem
References
| Module | MassAIBehavior |
| Header | /Engine/Plugins/AI/MassAI/Source/MassAIBehavior/Public/MassComponentHitSubsystem.h |
| Include | #include "MassComponentHitSubsystem.h" |
Syntax
UCLASS&40;&41;
class UMassComponentHitSubsystem : public UTickableWorldSubsystem
Remarks
Subsystem that keeps track of the latest component hits and allow mass entities to retrieve and handle them
Variables
| Type | Name | Description | |
|---|---|---|---|
| TObjectPtr< UMassAgentSubsystem > | AgentSubsystem | ||
| TMap< TObjectPtr< UActorComponent >, FMassEntityHandle > | ComponentToEntityMap | ||
| TMap< FMassEntityHandle, TObjectPtr< UActorComponent > > | EntityToComponentMap | ||
| TMap< FMassEntityHandle, FMassHitResult > | HitResults | ||
| TObjectPtr< UMassSignalSubsystem > | SignalSubsystem |
Functions
| Type | Name | Description | |
|---|---|---|---|
| const FMassHitResult * | GetLastHit
(
const FMassEntityHandle Entity |
||
| void | OnHitCallback
(
UPrimitiveComponent* HitComp, |
||
| void | RegisterForComponentHit
(
const FMassEntityHandle Entity, |
||
| void | UnregisterForComponentHit
(
FMassEntityHandle Entity, |
Overridden from USubsystem
| Type | Name | Description | |
|---|---|---|---|
| void | Deinitialize () |
Implement this for deinitialization of instances of the system | |
| void | Initialize
(
FSubsystemCollectionBase& Collection |
USubsystem implementation Begin. |