Navigation
API > API/Plugins > API/Plugins/GeometryMask
Inheritance Hierarchy
- UObject
- UGeometryMaskCanvasResource
References
| Module | GeometryMask |
| Header | /Engine/Plugins/Experimental/GeometryMask/Source/GeometryMask/Public/GeometryMaskCanvasResource.h |
| Include | #include "GeometryMaskCanvasResource.h" |
Syntax
UCLASS ()
class UGeometryMaskCanvasResource : public UObject
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
||
| bool | Checkin
(
const FGeometryMaskCanvasId& InRequestingCanvasId |
Returns/frees the color channel associated with the given canvas name. | |
| bool | Checkout
(
const EGeometryMaskColorChannel InColorChannel, |
Requests usage of the given color channel for this resource. Will return true if successful. | |
| int32 | Compact () |
Re-arranges used channels such that they are used sequentially. Returns number of unused channels. | |
| TArray< FGeometryMaskCanvasId > | Get the list of dependent canvases, for debug purposes. | ||
| const EGeometryMaskColorChannel | Will return the first available color channel without a canvas assigned. | ||
| int32 | |||
| UCanvasRenderTarget2D * | |||
| int32 | GetViewportPadding
(
const FGeometryMaskDrawingContext& InDrawingContext |
Returns required viewport padding, in pixels - determined by certain effects. | |
| bool | |||
| FOnGeometryMaskCanvasDraw & | |||
| void | ResetRenderParameters
(
EGeometryMaskColorChannel InColorChannel |
Resets the render parameters for the given channel. | |
| void | SetViewportSize
(
FGeometryMaskDrawingContext& InDrawingContext, |
||
| void | Updates the canvas, intended to be called every frame. | ||
| void | UpdateRenderParameters
(
EGeometryMaskColorChannel InColorChannel, |
||
| void |
Constants
| Name | Description |
|---|---|
| MaxNumAvailableChannels | |
| MaxNumChannels | (R, G, B, A) |
| MaxTextureSize |