Navigation
API > API/Plugins > API/Plugins/AvalancheModifiers > API/Plugins/AvalancheModifiers/Modifiers
Inheritance Hierarchy
- UObject
- UActorModifierCoreBase
- UAvaBaseModifier
- UAvaGeometryBaseModifier
- UAvaBooleanModifier
References
| Module | AvalancheModifiers |
| Header | /Engine/Plugins/Experimental/Avalanche/Source/AvalancheModifiers/Public/Modifiers/AvaBooleanModifier.h |
| Include | #include "Modifiers/AvaBooleanModifier.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType)
class UAvaBooleanModifier :
public UAvaGeometryBaseModifier ,
public IAvaTransformUpdateHandler
Remarks
This modifier allows you to apply a mask on a certain shape, this will affect every shape it collides with that matches options
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint8 | Channel | Channel to only apply this tool on shapes with the same channel | |
| FAvaBooleanModifierSharedChannelInfo | ChannelInfo | General infos on the channel used by this modifier profiler | |
| TSet< TWeakObjectPtr< UAvaBooleanModifier > > | CollidingModifiers | Colliding actor modifiers to quickly update | |
| EAvaBooleanMode | Mode | Mode to use when shapes are colliding, none means you will be masked otherwise you are masking | |
| TArray< TObjectPtr< UMaterialInterface > > | OriginalMaterials | Original materials before we apply the mask material | |
| FAvaModifiersParametricMaterial | ParametricMaskMaterial |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| void | ApplyTool
(
EAvaBooleanMode InMode, |
||
| void | Creates depth for a mask shape that has none | ||
| uint8 | GetChannel () |
||
| const FAvaBooleanModifierSharedChannelInfo & | |||
| EAvaBooleanMode | GetMode () |
||
| void | |||
| void | |||
| void | OnMaskVisibilityChange
(
const UWorld* World, |
Called by the editor to change visibility of mask in a world | |
| void | |||
| void | |||
| void | |||
| void | SetChannel
(
uint8 InChannel |
||
| void | SetMode
(
EAvaBooleanMode InMode |
||
| void | |||
| void | |||
| void |
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 | 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 | OnModifierDisabled
(
EActorModifierCoreDisableReason InReason |
Called when a modifier is disabled | |
| void | OnModifierEnabled
(
EActorModifierCoreEnableReason InReason |
Called when a modifier is enabled | |
| 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 IAvaTransformUpdateHandler
| Type | Name | Description | |
|---|---|---|---|
| void | OnTransformUpdated
(
AActor* InActor, |
Callback when a tracked actor transform changes |
Constants
| Name | Description |
|---|---|
| MinDepth | This is the min depth threshold needed on the mask for it to work properly |