Navigation
API > API/Runtime > API/Runtime/Engine
An actor used to generate collision events (begin/end overlap) in the level.
| Name | ATriggerBase |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/TriggerBase.h |
| Include Path | #include "Engine/TriggerBase.h" |
Syntax
UCLASS (ClassGroup=Common, Abstract, ConversionRoot, MinimalAPI)
class ATriggerBase : public AActor
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → AActor → ATriggerBase
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ATriggerBase
(
const FObjectInitializer& ObjectInitializer |
Engine/TriggerBase.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CollisionComponent | TObjectPtr< UShapeComponent > | Shape component used for collision | Engine/TriggerBase.h |
|
| SpriteComponent | TObjectPtr< UBillboardComponent > | Billboard used to see the trigger in the editor | Engine/TriggerBase.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UShapeComponent * GetCollisionComponent() |
Returns CollisionComponent subobject | Engine/TriggerBase.h | |
UBillboardComponent * GetSpriteComponent() |
Returns SpriteComponent subobject | Engine/TriggerBase.h |