Navigation
API > API/Plugins > API/Plugins/GeometryMask
Inheritance Hierarchy
- UObject
- UGeometryMaskCanvas
References
| Module | GeometryMask |
| Header | /Engine/Plugins/Experimental/GeometryMask/Source/GeometryMask/Public/GeometryMaskCanvas.h |
| Include | #include "GeometryMaskCanvas.h" |
Syntax
UCLASS (BlueprintType, Transient)
class UGeometryMaskCanvas : public UObject
Remarks
A uniquely identified Canvas.
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddWriter
(
const TScriptInterface< IGeometryMaskWriteInterface >& InWriter |
Adds a Mask Writer to the canvas. | |
| void | AddWriters
(
const TArray< TScriptInterface< IGeometryMaskWriteInterface > >& InWriters |
Appends multiple writers to the canvas. | |
| void | AssignResource
(
UGeometryMaskCanvasResource* InResource, |
||
| void | BeginDestroy () |
||
| void | Free () |
Forcibly free the canvas - removed all writers and frees the resource. | |
| void | FreeResource () |
||
| FName | |||
| FName | |||
| double | Gets the current blur strength, if applicable. | ||
| FName | |||
| const FGeometryMaskCanvasId & | GetCanvasId () |
Get the unique canvas id based on the world and canvas name. | |
| EGeometryMaskColorChannel | Get the color channel to write to in the texture. | ||
| int32 | Gets the current inner feather radius, in pixels. | ||
| FName | |||
| ULevel * | GetLevel () |
||
| int32 | Gets the number of writers for the canvas. | ||
| int32 | Gets the current outer feather radius, in pixels. | ||
| FName | |||
| const UGeometryMaskCanvasResource * | GetResource () |
||
| UCanvasRenderTarget2D * | GetTexture () |
Get the underlying render target. | |
| const TArray< TWeakInterfacePtr< IGeometryMaskWriteInterface > > & | GetWriters () |
Returns all writers. | |
| void | Initialize
(
const ULevel* InLevel, |
Setup with identifying info. | |
| bool | Whether blur is applied or not. | ||
| bool | Returns true if this is the default/blank canvas. | ||
| bool | Whether feathering is applied or not. | ||
| FOnGeometryMaskCanvasActivated & | OnActivated () |
Called when Writers becomes non-empty. | |
| FOnGeometryMaskCanvasDeactivated & | Called when Writers becomes empty. | ||
| void | PostEditChangeProperty
(
FPropertyChangedEvent& InPropertyChangedEvent |
||
| void | RemoveWriter
(
const TScriptInterface< IGeometryMaskWriteInterface >& InWriter |
Remove a writer from this canvas. | |
| void | SetApplyBlur
(
const bool bInValue |
Sets whether blur is applied or not. | |
| void | SetApplyFeather
(
const bool bInValue |
Sets whether feathering is applied or not. | |
| void | SetBlurStrength
(
const double InValue |
Sets the blur strength. 0.0 will disable blur. | |
| void | SetInnerFeatherRadius
(
const int32 InValue |
Sets the inner feather radius, in pixels. | |
| void | SetOuterFeatherRadius
(
const int32 InValue |
Sets the outer feather radius, in pixels. | |
| void | Update
(
const ULevel* InLevel, |
Updates the canvas, intended to be called every frame. |