UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TriggerBase.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
8#include "TriggerBase.generated.h"
9
11class UShapeComponent;
12
14UCLASS(ClassGroup=Common, abstract, ConversionRoot, MinimalAPI)
16{
18
19private:
21 UPROPERTY(Category = TriggerBase, VisibleAnywhere, BlueprintReadOnly, meta = (AllowPrivateAccess = "true"))
22 TObjectPtr<UShapeComponent> CollisionComponent;
23
24#if WITH_EDITORONLY_DATA
26 UPROPERTY(Category = TriggerBase, BlueprintReadOnly, meta = (AllowPrivateAccess = "true"))
27 TObjectPtr<UBillboardComponent> SpriteComponent;
28#endif
29
30public:
32 UShapeComponent* GetCollisionComponent() const { return CollisionComponent; }
33
34#if WITH_EDITORONLY_DATA
36 UBillboardComponent* GetSpriteComponent() const { return SpriteComponent; }
37#endif
38};
39
40
41
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition Actor.h:257
Definition TriggerBase.h:16
UShapeComponent * GetCollisionComponent() const
Definition TriggerBase.h:32
Definition ObjectPtr.h:488