EM_Task/UnrealEd/Private/HierarchicalLODVolume.cpp
Boshuang Zhao 5144a49c9b add
2026-02-13 16:18:33 +08:00

26 lines
837 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "HierarchicalLODVolume.h"
#include "Engine/CollisionProfile.h"
#include "Components/BrushComponent.h"
AHierarchicalLODVolume::AHierarchicalLODVolume(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer), bIncludeOverlappingActors(false)
{
if (UBrushComponent* MyBrushComponent = GetBrushComponent())
{
MyBrushComponent->SetCollisionEnabled(ECollisionEnabled::NoCollision);
MyBrushComponent->SetCanEverAffectNavigation(false);
MyBrushComponent->SetGenerateOverlapEvents(false);
}
bNotForClientOrServer = true;
bIsEditorOnlyActor = true;
bColored = true;
BrushColor.R = 255;
BrushColor.G = 100;
BrushColor.B = 255;
BrushColor.A = 255;
}