Navigation
API > API/Plugins > API/Plugins/GeometryMask
Handles writing to the mask canvas and caching component draw data
| Name | FMaskWriter |
| Type | struct |
| Header File | /Engine/Plugins/VirtualProduction/GeometryMask/Source/GeometryMask/Public/GeometryMaskWriter.h |
| Include Path | #include "GeometryMaskWriter.h" |
Syntax
struct FMaskWriter : public TSharedFromThis< FMaskWriter >
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → FMaskWriter
Structs
| Name | Remarks |
|---|---|
| FDrawParams |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CachedComponents | TMap< TObjectKey< UPrimitiveComponent >, FObjectKey > | Cached primitive component to the mesh object used, multiple components can use same mesh data | GeometryMaskWriter.h | |
| CachedMeshData | TMap< FObjectKey, FGeometryMaskBatchElementData > | Cached mesh object to its batch element data (one entry per unique mesh) | GeometryMaskWriter.h | |
| LastPrimitiveComponentCountMap | TMap< TObjectKey< AActor >, int32 > | Cached component count per actor | GeometryMaskWriter.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void DrawToCanvas
(
const FDrawParams& InParams |
GeometryMaskWriter.h | ||
void ForEachMaskPrimitive
(
TFunctionRef< void(TNotNull< const UPrimitiveComponent* >)> InFunc |
Iterates each primitive that is masked | GeometryMaskWriter.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static TSharedRef< FMaskWriter > Create() |
GeometryMaskWriter.h |