Navigation
API > API/Runtime > API/Runtime/Engine
Base class of UnrealEd brush builders.
Tips for writing brush builders:
- Always validate the user-specified and call BadParameters function if anything is wrong, instead of actually building geometry. If you build an invalid brush due to bad user parameters, you'll cause an extraordinary amount of pain for the poor user.
- When generating polygons with more than 3 vertices, BE SURE all the polygon's vertices are coplanar! Out-of-plane polygons will cause geometry to be corrupted.
| Name | UBrushBuilder |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/BrushBuilder.h |
| Include Path | #include "Engine/BrushBuilder.h" |
Syntax
UCLASS (Abstract, HideCategories=(Object), MinimalAPI)
class UBrushBuilder : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UBrushBuilder
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UBrushBuilder
(
const FObjectInitializer& ObjectInitializer |
Engine/BrushBuilder.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BitmapFilename | FString | Engine/BrushBuilder.h | ||
| NotifyBadParams | uint32 | If false, disabled the bad param notifications | Engine/BrushBuilder.h |
|
| ToolTip | FString | Localized FString that will be displayed as the name of this brush builder in the editor | Engine/BrushBuilder.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool BadParameters
(
const FText& msg |
Engine/BrushBuilder.h | ||
virtual void BeginBrush
(
bool InMergeCoplanars, |
@ todo document all below | Engine/BrushBuilder.h | |
| Builds the brush shape for the specified ABrush or the builder brush if Brush is nullptr. | Engine/BrushBuilder.h | ||
| Engine/BrushBuilder.h | |||
virtual int32 GetPolyCount() |
Engine/BrushBuilder.h | ||
virtual FVector GetVertex
(
int32 i |
Engine/BrushBuilder.h | ||
virtual int32 GetVertexCount() |
Engine/BrushBuilder.h | ||
virtual void Poly3i
(
int32 Direction, |
Engine/BrushBuilder.h | ||
virtual void Poly4i
(
int32 Direction, |
Engine/BrushBuilder.h | ||
virtual void PolyBegin
(
int32 Direction, |
Engine/BrushBuilder.h | ||
virtual void PolyEnd() |
Engine/BrushBuilder.h | ||
virtual void Polyi
(
int32 i |
Engine/BrushBuilder.h | ||
virtual int32 Vertex3f
(
float X, |
Engine/BrushBuilder.h | ||
virtual int32 Vertexv
(
FVector v |
Engine/BrushBuilder.h |