Navigation
API > API/Plugins > API/Plugins/MeshPaintingToolset
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UInteractiveTool
- USingleSelectionTool
- UMeshSurfacePointTool
- UBaseBrushTool
- UMeshTexturePaintingTool
References
| Module | MeshPaintingToolset |
| Header | /Engine/Plugins/MeshPainting/Source/MeshPaintingToolset/Public/MeshTexturePaintingTool.h |
| Include | #include "MeshTexturePaintingTool.h" |
Syntax
UCLASS&40;&41;
class UMeshTexturePaintingTool :
public UBaseBrushTool,
public IMeshPaintSelectionInterface
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bCachedClickRay | ||
| bool | bInDrag | ||
| bool | bResultValid | ||
| bool | bStampPending | ||
| double | InitialMeshArea | ||
| FRay | PendingClickRay | ||
| FVector2D | PendingClickScreenPosition | ||
| FRay | PendingStampRay | ||
| TObjectPtr< UMeshPaintSelectionMechanic > | SelectionMechanic |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| FPaintTexture2DData * | AddPaintTargetData
(
UTexture2D* InTexture |
||
| void | |||
| void | |||
| double | CalculateTargetEdgeLength
(
int TargetTriCount |
||
| void | |||
| void | |||
| void | CycleTextures
(
int32 Direction |
||
| void | |||
| void | |||
| void | |||
| void | GatherTextureTriangles
(
IMeshPaintComponentAdapter* Adapter, |
||
| int32 | Returns the number of texture that require a commit. | ||
| FPaintTexture2DData * | GetPaintTargetData
(
const UTexture2D* InTexture |
||
| bool | IsPainting () |
||
| FSimpleDelegate & | |||
| void | OnTransactionStateChanged
(
const FTransactionContext& InTransactionContext, |
||
| bool | Paint
(
const TArrayView< TPair< FVector, FVector >>& Rays |
||
| bool | Paint
(
const FVector& InRayOrigin, |
||
| void | PaintTexture
(
FMeshPaintParameters& InParams, |
||
| void | PaintTextureChanged
(
const FAssetData& AssetData |
||
| void | SetAdditionalPaintParameters
(
FMeshPaintParameters& InPaintParameters |
||
| bool | ShouldFilterTextureAsset
(
const FAssetData& AssetData |
||
| void | StartPaintingTexture
(
UMeshComponent* InMeshComponent, |
||
| void | UpdateResult () |
Overridden from UBaseBrushTool
| Type | Name | Description | |
|---|---|---|---|
| double | Subclasses should implement this to give an estimate of target dimension for brush size scaling |
Overridden from UMeshSurfacePointTool
| Type | Name | Description | |
|---|---|---|---|
| bool | HitTest
(
const FRay& Ray, |
||
| void | OnBeginDrag
(
const FRay& Ray |
UMeshSurfacePointTool implementation. | |
| void | OnEndDrag
(
const FRay& Ray |
This function is called when the user releases the button driving a click-drag-release interaction | |
| void | OnUpdateDrag
(
const FRay& Ray |
This function is called each frame that the user is in a click-drag-release interaction |
Overridden from UInteractiveTool
| Type | Name | Description | |
|---|---|---|---|
| bool | CanAccept () |
||
| bool | HasAccept () |
||
| bool | HasCancel () |
||
| void | OnPropertyModified
(
UObject* PropertySet, |
Automatically called by UInteractiveToolPropertySet.OnModified delegate to notify Tool of child property set changes | |
| void | OnTick
(
float DeltaTime |
Allow the Tool to do any necessary processing on Tick | |
| void | Render
(
IToolsContextRenderAPI* RenderAPI |
Allow the Tool to do any custom drawing (ie via PDI/RHI) | |
| void | Setup () |
UInteractiveTool. | |
| void | Shutdown
(
EToolShutdownType ShutdownType |
Called by ToolManager to shut down the Tool |
Overridden from IClickDragBehaviorTarget
| Type | Name | Description | |
|---|---|---|---|
| FInputRayHit | CanBeginClickDragSequence
(
const FInputDeviceRay& PressPos |
IClickDragBehaviorTarget implementation. |
Overridden from IModifierToggleBehaviorTarget
| Type | Name | Description | |
|---|---|---|---|
| void | OnUpdateModifierState
(
int ModifierID, |
Notify target of current modifier state |
Overridden from IMeshPaintSelectionInterface
| Type | Name | Description | |
|---|---|---|---|
| bool | |||
| bool | IsMeshAdapterSupported
(
TSharedPtr< IMeshPaintComponentAdapter > MeshAdapter |