2019-12-26 14:45:42 -05:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
2019-06-08 17:15:34 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
2023-02-16 12:40:53 -05:00
|
|
|
#if WITH_EDITOR
|
2019-06-08 17:15:34 -04:00
|
|
|
|
|
|
|
|
#include "EngineUtils.h"
|
|
|
|
|
|
|
|
|
|
class UGeometryCollectionComponent;
|
|
|
|
|
|
|
|
|
|
/** HitProxy with transform index information. */
|
2023-02-16 12:40:53 -05:00
|
|
|
struct HGeometryCollection : public HHitProxy
|
2019-06-08 17:15:34 -04:00
|
|
|
{
|
|
|
|
|
DECLARE_HIT_PROXY(GEOMETRYCOLLECTIONENGINE_API)
|
|
|
|
|
|
2023-05-16 10:52:49 -04:00
|
|
|
TObjectPtr<UGeometryCollectionComponent> Component;
|
2019-06-08 17:15:34 -04:00
|
|
|
int32 BoneIndex;
|
|
|
|
|
|
2023-02-16 12:40:53 -05:00
|
|
|
HGeometryCollection(UGeometryCollectionComponent* InGeometryCollectionComponent, int32 InBoneIndex)
|
2019-06-08 17:15:34 -04:00
|
|
|
: Component(InGeometryCollectionComponent)
|
|
|
|
|
, BoneIndex(InBoneIndex)
|
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
virtual void AddReferencedObjects(FReferenceCollector& Collector) override
|
|
|
|
|
{
|
|
|
|
|
Collector.AddReferencedObject(Component);
|
|
|
|
|
}
|
|
|
|
|
};
|
2023-02-16 12:40:53 -05:00
|
|
|
|
|
|
|
|
#endif // WITH_EDITOR
|