diff --git a/Content/BP_BugPlacerPawn.uasset b/Content/BP_BugPlacerPawn.uasset index ebdc9d7..0c50275 100644 Binary files a/Content/BP_BugPlacerPawn.uasset and b/Content/BP_BugPlacerPawn.uasset differ diff --git a/Source/Unrealzilla/Private/BugPlacerPawn.cpp b/Source/Unrealzilla/Private/BugPlacerPawn.cpp index d8e03d8..8e912d7 100644 --- a/Source/Unrealzilla/Private/BugPlacerPawn.cpp +++ b/Source/Unrealzilla/Private/BugPlacerPawn.cpp @@ -94,11 +94,13 @@ void ABugPlacerPawn::TraceTimerElapsed() if (ABugMarkerActor *Marker = Cast(TraceHit.GetActor())) { this->PlacementMarkerRoot->SetVisibility(true, false); + this->ShowDummyMarker(false); this->UpdateBugInformation(Marker->GetBugData()); } else { this->PlacementMarkerRoot->SetVisibility(true, true); + this->ShowDummyMarker(true); this->UpdateBugInformation(FJSONBugData()); } diff --git a/Source/Unrealzilla/Public/BugPlacerPawn.h b/Source/Unrealzilla/Public/BugPlacerPawn.h index e626f0f..fd47e47 100644 --- a/Source/Unrealzilla/Public/BugPlacerPawn.h +++ b/Source/Unrealzilla/Public/BugPlacerPawn.h @@ -28,6 +28,8 @@ public: UFUNCTION(BlueprintImplementableEvent) void UpdateBugInformation(const FJSONBugData &BugData); + UFUNCTION(BlueprintImplementableEvent) + void ShowDummyMarker(const bool bShow); UFUNCTION(BlueprintCallable, meta=(WorldContext="WorldContextObject")) static void SpawnBugPlacerPawn(const UObject *WorldContextObject, TSubclassOf Class);