2019-12-26 14:45:42 -05:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
2018-12-12 11:25:29 -05:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
/** This class represents an GeometryCollection Actor. */
|
|
|
|
|
|
|
|
|
|
#include "CoreMinimal.h"
|
|
|
|
|
#include "GameFramework/Actor.h"
|
|
|
|
|
#include "UObject/ObjectMacros.h"
|
|
|
|
|
|
|
|
|
|
#include "GeometryCollectionActor.generated.h"
|
|
|
|
|
|
|
|
|
|
|
2020-04-08 10:59:25 -04:00
|
|
|
class UGeometryCollectionComponent;
|
|
|
|
|
class UGeometryCollectionDebugDrawComponent;
|
|
|
|
|
struct FHitResult;
|
2018-12-12 11:25:29 -05:00
|
|
|
|
|
|
|
|
UCLASS()
|
|
|
|
|
class GEOMETRYCOLLECTIONENGINE_API AGeometryCollectionActor: public AActor
|
|
|
|
|
{
|
|
|
|
|
GENERATED_UCLASS_BODY()
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
/* Game state callback */
|
|
|
|
|
virtual void Tick(float DeltaSeconds) override;
|
|
|
|
|
|
2019-06-08 17:15:34 -04:00
|
|
|
#if WITH_EDITOR
|
|
|
|
|
virtual bool GetReferencedContentObjects(TArray<UObject*>& Objects) const override;
|
|
|
|
|
#endif
|
|
|
|
|
|
2018-12-12 11:25:29 -05:00
|
|
|
/* GeometryCollectionComponent */
|
2019-06-08 17:15:34 -04:00
|
|
|
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Destruction, meta = (ExposeFunctionCategories = "Components|GeometryCollection", AllowPrivateAccess = "true"))
|
2021-01-27 17:40:25 -04:00
|
|
|
TObjectPtr<UGeometryCollectionComponent> GeometryCollectionComponent;
|
2018-12-12 11:25:29 -05:00
|
|
|
UGeometryCollectionComponent* GetGeometryCollectionComponent() const { return GeometryCollectionComponent; }
|
|
|
|
|
|
2022-02-02 02:20:31 -05:00
|
|
|
PRAGMA_DISABLE_DEPRECATION_WARNINGS
|
|
|
|
|
UPROPERTY()
|
|
|
|
|
TObjectPtr<UGeometryCollectionDebugDrawComponent> GeometryCollectionDebugDrawComponent_DEPRECATED;
|
|
|
|
|
PRAGMA_ENABLE_DEPRECATION_WARNINGS
|
|
|
|
|
|
2018-12-12 11:25:29 -05:00
|
|
|
UFUNCTION(BlueprintCallable, Category = "Physics")
|
|
|
|
|
bool RaycastSingle(FVector Start, FVector End, FHitResult& OutHit) const;
|
|
|
|
|
|
2019-08-02 09:01:58 -04:00
|
|
|
};
|