Navigation
API > API/Plugins > API/Plugins/AvalancheMask > API/Plugins/AvalancheMask/Mask2D
Inheritance Hierarchy
- UObject
- UActorModifierCoreBase
- UAvaBaseModifier
- UAvaAttachmentBaseModifier
- UAvaArrangeBaseModifier
- UAvaMask2DBaseModifier
- UAvaMask2DReadModifier
- UAvaMask2DWriteModifier
References
| Module | AvalancheMask |
| Header | /Engine/Plugins/Experimental/Avalanche/Source/AvalancheMask/Public/Mask2D/AvaMask2DBaseModifier.h |
| Include | #include "Mask2D/AvaMask2DBaseModifier.h" |
Syntax
UCLASS (Abstract)
class UAvaMask2DBaseModifier : public UAvaArrangeBaseModifier
Remarks
Uses scene actors to create a mask texture and applies it to attached actors
Variables
| Type | Name | Description | |
|---|---|---|---|
| TMap< TWeakObjectPtr< AActor >, FAvaMask2DActorData > | ActorData | Cached actor data to apply/restore | |
| FName | AutoChannelName | Cached auto channel name, used when the user adds the modifier and immediately sets the mode to Source, in which case a different channel name is chosen. | |
| bool | bInverted | Whether to apply the mask as inverted (visible becomes invisible and vice versa) | |
| bool | bIsRestoring | ||
| float | BlurStrength | ||
| bool | bUseBlur | ||
| bool | bUseFeathering | ||
| bool | bUseParentChannel | Whether to get the channel from the parent (first one that specifies a mask channel) | |
| TWeakObjectPtr< UTexture > | CanvasTextureWeak | Reference to the underlying canvas texture | |
| TWeakObjectPtr< UGeometryMaskCanvas > | CanvasWeak | Reference to the Canvas used | |
| FName | Channel | Channel to read to or write from | |
| int32 | InnerFeatherRadius | ||
| FName | LastResolvedCanvasName | Reference to the last resolved canvas name, as stored in CanvasWeak | |
| TMap< TWeakObjectPtr< UObject >, FInstancedStruct > | MaterialCollectionHandleData | ||
| TMap< TObjectKey< UObject >, TSharedPtr< IAvaMaskMaterialCollectionHandle > > | MaterialCollectionHandles | ||
| TMap< TWeakObjectPtr< UMaterialInterface >, FInstancedStruct > | MaterialHandleData | ||
| TWeakObjectPtr< UAvaMaskMaterialInstanceSubsystem > | MaterialInstanceSubsystem | ||
| TWeakObjectPtr< UAvaObjectHandleSubsystem > | ObjectHandleSubsystem | ||
| int32 | OuterFeatherRadius | ||
| FName | ParentChannel | Channel found when GetChannelFromParent is true |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | ActorSupportsMaskReadWrite
(
const AActor* InActor |
||
| void | Stores specific properties on the canvas locally. | ||
| UAvaMask2DBaseModifier * | FindMaskModifierOnActor
(
const AActor* InActor |
Utility to find an existing modifier on the provided actor or it's parent | |
| UActorComponent * | FindOrAddMaskComponent
(
TSubclassOf< UActorComponent > InComponentClass, |
||
| InComponentClass * | FindOrAddMaskComponent
(
AActor* InActor |
||
| FName | Utility to generate a unique mask name based on the associated Actor | ||
| float | |||
| const FName | GetChannel () |
||
| UGeometryMaskCanvas * | Returns or resolves the currently referenced canvas. | ||
| int32 | |||
| UAvaMaskMaterialInstanceSubsystem * | |||
| UAvaObjectHandleSubsystem * | |||
| int32 | |||
| bool | IsInverted () |
||
| void | Apply locally stored parameters to the canvas. | ||
| void | |||
| void | |||
| void | |||
| void | |||
| void | |||
| void | OnMaskSetCanvas
(
const UGeometryMaskCanvas* InCanvas, |
||
| void | OnMaterialsChanged
(
UPrimitiveComponent* InPrimitiveComponent, |
||
| void | |||
| void | RemoveFromActor
(
AActor* InActor |
||
| void | RestoreActorPreState
(
AActor* InActor, |
||
| void | SaveActorPreState
(
AActor* InActor, |
||
| void | SetBlurStrength
(
float InBlurStrength |
||
| void | SetChannel
(
FName InChannel |
||
| void | SetInnerFeatherRadius
(
int32 InFeatherRadius |
||
| void | SetIsInverted
(
const bool bInInvert |
||
| void | SetOuterFeatherRadius
(
int32 InFeatherRadius |
||
| void | |||
| void | SetupMaskComponent
(
UActorComponent* InComponent |
||
| void | SetUseParentChannel
(
const bool bInUseParentChannel |
||
| void | |||
| UTexture * | TryResolveCanvasTexture
(
AActor* InActor, |
||
| bool | Returns true if parent channel was found | ||
| bool | UseBlur () |
||
| void | UseBlur
(
bool bInUseBlur |
||
| bool | |||
| void | UseFeathering
(
bool bInUseFeathering |
||
| bool |
Overridden from UActorModifierCoreBase
| Type | Name | Description | |
|---|---|---|---|
| void | Apply () |
Override in child classes, apply this modifier on the actual actor, call Next or Fail to complete the modifier execution | |
| void | Called when modified actor transform is updated if this modifier is enabled | ||
| void | OnModifierAdded
(
EActorModifierCoreEnableReason InReason |
Called after the modifier was added to a stack and initialized after creation or serialization or duplication | |
| void | OnModifierCDOSetup
(
FActorModifierCoreMetadata& InMetadata |
Override metadata for this modifier, called only once before modifier CDO is registered | |
| void | OnModifierRemoved
(
EActorModifierCoreDisableReason InReason |
Called after the modifier is removed from a stack and uninitialized after actor destruction | |
| void | PostEditChangeProperty
(
FPropertyChangedEvent& InPropertyChangedEvent |
||
| void | Override in child classes, unapply this modified changes and restore the state before this modifier is applied | ||
| void | SavePreState () |
Override in child classes, called before applying this modifier |
Overridden from IAvaSceneTreeUpdateHandler
| Type | Name | Description | |
|---|---|---|---|
| void | OnSceneTreeTrackedActorChildrenChanged
(
int32 InIdx, |
||
| void | OnSceneTreeTrackedActorParentChanged
(
int32 InIdx, |
Constants
| Name | Description |
|---|---|
| PropertyChangeDispatcher | Used for PECP |