UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
BrushComponent.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"
8#include "BrushComponent.generated.h"
9
12struct FConvexVolume;
13struct FEngineShowFlags;
14
20UCLASS(editinlinenew, MinimalAPI, hidecategories=(Physics, Lighting, LOD, Rendering, TextureStreaming, Transform, Activation, "Components|Activation"), showcategories=(Mobility, "Rendering|Material"))
21class UBrushComponent : public UPrimitiveComponent
22{
24
25 UPROPERTY()
26 TObjectPtr<class UModel> Brush;
27
29 UPROPERTY()
31
32#if WITH_EDITORONLY_DATA
34 UPROPERTY()
36#endif
37
38 //~ Begin UObject Interface
39 virtual void PostLoad() override;
40#if WITH_EDITOR
41 ENGINE_API virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override;
42 //~ End UObject Interface
43
45#endif //WITH_EDITOR
46
47 //~ Begin USceneComponent Interface
48 virtual FBoxSphereBounds CalcBounds(const FTransform& LocalToWorld) const override;
49 virtual bool ShouldCollideWhenPlacing() const override { return true; }
50 //~ End USceneComponent Interface
51
52public:
53
54 //~ Begin UPrimitiveComponent Interface.
55 virtual FPrimitiveSceneProxy* CreateSceneProxy() override;
56 virtual class UBodySetup* GetBodySetup() override { return BrushBodySetup; };
57 virtual void GetUsedMaterials( TArray<UMaterialInterface*>& OutMaterials, bool bGetDebugMaterials = false ) const override;
58 virtual ESceneDepthPriorityGroup GetStaticDepthPriorityGroup() const override;
59 virtual bool IsEditorOnly() const override;
60
61 virtual bool IsShown(const FEngineShowFlags& ShowFlags) const override;
62#if WITH_EDITOR
63 virtual bool ComponentIsTouchingSelectionBox(const FBox& InSelBox, const bool bConsiderOnlyBSP, const bool bMustEncompassEntireComponent) const override;
64 virtual bool ComponentIsTouchingSelectionFrustum(const FConvexVolume& InFrustum, const bool bConsiderOnlyBSP, const bool bMustEncompassEntireComponent) const override;
65 //~ End UPrimitiveComponent Interface.
66
68 ENGINE_API bool HasInvertedPolys() const;
69
72#endif
73
76};
77
78
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
ESceneDepthPriorityGroup
Definition EngineTypes.h:187
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition PrimitiveSceneProxy.h:296
Definition Array.h:670
Definition BodySetup.h:128
Definition MaterialInterface.h:296
Definition Model.h:401
virtual bool IsEditorOnly() const
Definition Object.h:593
ENGINE_API FBox CalcBounds(const FVector &P0, const FVector &P1, const FVector &P2, const FVector &P3)
Definition BezierUtilities.cpp:26
Definition ConvexVolume.h:44
Definition ShowFlags.h:56
Definition UnrealType.h:6865
Definition ObjectPtr.h:488
Definition BoxSphereBounds.h:25