KLingo Project Documentation 1.0.0
Unreal Engine 5.6 C++ Project Documentation
로딩중...
검색중...
일치하는것 없음
ABroadcastTrigger.h
이 파일의 문서화 페이지로 가기
1// Copyright (c) 2025 Doppleddiggong. All rights reserved. Unauthorized copying, modification, or distribution of this file, via any medium is strictly prohibited. Proprietary and confidential.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "GameFramework/Actor.h"
7#include "ABroadcastTrigger.generated.h"
8
9UCLASS()
10class ONEPIECE_API ABroadcastTrigger : public AActor
11{
12 GENERATED_BODY()
13public:
15
16protected:
17 virtual void BeginPlay() override;
18
19public:
20 virtual void Tick(float DeltaTime) override;
21
22 UFUNCTION(BlueprintNativeEvent, Category = "Interaction")
23 void OnActivate();
24 virtual void OnActivate_Implementation();
25
26
27protected:
29 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Trigger")
30 TObjectPtr<class UBoxComponent> TriggerBox;
31
33 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Trigger")
34 bool bIsTriggered;
35
37 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Debug")
38 bool bShowDebugBox;
39
41 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Debug")
42 FColor DebugBoxColor;
43
44protected:
46 UFUNCTION()
47 void OnTriggerBeginOverlap(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor,
48 UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult);
49};