Files
UnrealEngineUWP/Engine/Source/Runtime/Experimental/GeometryCollectionEngine/Public/GeometryCollection/GeometryCollectionHitProxy.h
Max Chen 4561801a81 Merging //UE4/Dev-Main to Dev-Editor (//UE4/Dev-Editor) @7119039
#rb none

[CL 7120528 by Max Chen in Dev-Editor branch]
2019-06-21 01:21:43 -04:00

46 lines
1.4 KiB
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#pragma once
#ifndef GEOMETRYCOLLECTION_EDITOR_SELECTION
#define GEOMETRYCOLLECTION_EDITOR_SELECTION WITH_EDITOR
#endif
#if GEOMETRYCOLLECTION_EDITOR_SELECTION
#include "EngineUtils.h"
class UGeometryCollectionComponent;
/** HitProxy with transform index information. */
struct HGeometryCollection : public HActor
{
DECLARE_HIT_PROXY(GEOMETRYCOLLECTIONENGINE_API)
int32 TransformIndex;
HGeometryCollection(AActor* InActor, const UPrimitiveComponent* InPrimitiveComponent, int32 InSectionIndex, int32 InMaterialIndex, int32 InTransformIndex)
: HActor(InActor, InPrimitiveComponent, InSectionIndex, InMaterialIndex)
, TransformIndex(InTransformIndex)
{}
};
/** HitProxy with transform index information. */
// @todo FractureTools - This is temp, we should merge it with HGeometryCollection
struct HGeometryCollectionBone : public HHitProxy
{
DECLARE_HIT_PROXY(GEOMETRYCOLLECTIONENGINE_API)
UGeometryCollectionComponent* Component;
int32 BoneIndex;
HGeometryCollectionBone(UGeometryCollectionComponent* InGeometryCollectionComponent, int32 InBoneIndex)
: Component(InGeometryCollectionComponent)
, BoneIndex(InBoneIndex)
{}
virtual void AddReferencedObjects(FReferenceCollector& Collector) override
{
Collector.AddReferencedObject(Component);
}
};
#endif // #if GEOMETRYCOLLECTION_EDITOR_SELECTION