UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Volume.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
7#include "Engine/Brush.h"
8#include "Volume.generated.h"
9
11
16UCLASS(showcategories=Collision, hidecategories=(Brush, Physics), abstract, ConversionRoot, MinimalAPI)
17class AVolume : public ABrush
18{
20
21#if WITH_EDITOR
24
25
27 {
29 }
30private:
33public:
34 //~ Begin AActor Interface
39 ENGINE_API virtual void CheckForErrors() override;
40 virtual bool ShouldCheckCollisionComponentForErrors() const { return true; }
41#endif // WITH_EDITOR
42
43 ENGINE_API virtual bool IsLevelBoundsRelevant() const override;
44 //~ End AActor Interface
45
46 //~ Begin Brush Interface
47 ENGINE_API virtual bool IsStaticBrush() const override;
48 ENGINE_API virtual bool IsVolumeBrush() const override;
49 //~ End Brush Interface
50
52 ENGINE_API bool EncompassesPoint(FVector Point, float SphereRadius=0.f, float* OutDistanceToPoint = 0) const;
53
55 ENGINE_API FBoxSphereBounds GetBounds() const;
56
57 //Begin UObject Interface
58#if WITH_EDITOR
59 ENGINE_API virtual void PostEditImport() override;
60 ENGINE_API virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override;
61 ENGINE_API virtual FName GetCustomIconName() const override;
62#endif // WITH_EDITOR
63 //End UObject Interface
64
65
66};
67
68
69
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define DECLARE_MULTICAST_DELEGATE_OneParam(DelegateName, Param1Type)
Definition DelegateCombinations.h:49
#define DECLARE_LOG_CATEGORY_EXTERN(CategoryName, DefaultVerbosity, CompileTimeVerbosity)
Definition LogMacros.h:361
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition Volume.h:18
Definition NameTypes.h:617
Definition UnrealType.h:6865
Definition BoxSphereBounds.h:25