2022-10-21 19:51:57 -04:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
#include "GeometryCollection/GeometryCollectionISMPoolActor.h"
|
|
|
|
|
#include "GeometryCollection/GeometryCollectionISMPoolComponent.h"
|
2023-03-09 00:00:20 -05:00
|
|
|
#include "GeometryCollection/GeometryCollectionISMPoolDebugDrawComponent.h"
|
2022-10-21 19:51:57 -04:00
|
|
|
|
2022-11-22 20:17:33 -05:00
|
|
|
#include UE_INLINE_GENERATED_CPP_BY_NAME(GeometryCollectionISMPoolActor)
|
|
|
|
|
|
2022-10-21 19:51:57 -04:00
|
|
|
AGeometryCollectionISMPoolActor::AGeometryCollectionISMPoolActor(const FObjectInitializer& ObjectInitializer)
|
|
|
|
|
: Super(ObjectInitializer)
|
|
|
|
|
{
|
|
|
|
|
ISMPoolComp = CreateDefaultSubobject<UGeometryCollectionISMPoolComponent>(TEXT("ISMPoolComp"));
|
|
|
|
|
RootComponent = ISMPoolComp;
|
2023-03-09 00:00:20 -05:00
|
|
|
|
|
|
|
|
#if UE_ENABLE_DEBUG_DRAWING
|
|
|
|
|
ISMPoolDebugDrawComp = CreateDefaultSubobject<UGeometryCollectionISMPoolDebugDrawComponent>(TEXT("ISMPoolDebug"));
|
|
|
|
|
ISMPoolDebugDrawComp->SetCollisionEnabled(ECollisionEnabled::NoCollision);
|
|
|
|
|
ISMPoolDebugDrawComp->SetCanEverAffectNavigation(false);
|
|
|
|
|
ISMPoolDebugDrawComp->CanCharacterStepUpOn = ECanBeCharacterBase::ECB_No;
|
|
|
|
|
ISMPoolDebugDrawComp->SetGenerateOverlapEvents(false);
|
|
|
|
|
ISMPoolDebugDrawComp->SetupAttachment(ISMPoolComp);
|
|
|
|
|
#endif
|
2022-10-21 19:51:57 -04:00
|
|
|
}
|