Bug placement marker now disappears when hovering over an existing bug to improve visibility.
This commit is contained in:
parent
e6beab5822
commit
3e9688e055
Binary file not shown.
@ -94,11 +94,13 @@ void ABugPlacerPawn::TraceTimerElapsed()
|
||||
if (ABugMarkerActor *Marker = Cast<ABugMarkerActor>(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());
|
||||
}
|
||||
|
||||
|
||||
@ -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<ABugPlacerPawn> Class);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user