Navigation
API > API/Plugins > API/Plugins/AvalancheModifiers > API/Plugins/AvalancheModifiers/Modifiers
Inheritance Hierarchy
- UObject
- UActorModifierCoreBase
- UAvaBaseModifier
- UAvaAlignBetweenModifier
References
| Module | AvalancheModifiers |
| Header | /Engine/Plugins/Experimental/Avalanche/Source/AvalancheModifiers/Public/Modifiers/AvaAlignBetweenModifier.h |
| Include | #include "Modifiers/AvaAlignBetweenModifier.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType)
class UAvaAlignBetweenModifier :
public UAvaBaseModifier ,
public IAvaTransformUpdateHandler
Remarks
Moves the modifying actor to the averaged location between an array of specified actors.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSet< FAvaAlignBetweenWeightedActor > | ReferenceActors | Editable set of reference actors and weights used to calculate the average location for this actor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AddReferenceActor
(
const FAvaAlignBetweenWeightedActor& InReferenceActor |
Adds an actor to the reference list. | |
| bool | FindReferenceActor
(
AActor* InActor, |
Finds an actor in the reference list. | |
| TSet< AActor * > | GetActors
(
const bool bEnabledOnly |
Gets all actors from their reference actor structs. | |
| TSet< FAvaAlignBetweenWeightedActor > | Returns all valid reference actors that enabled and have a weight greater than 0. | ||
| TSet< FAvaAlignBetweenWeightedActor > | Gets all reference actors and their weights. | ||
| void | |||
| void | PostTransacted
(
const FTransactionObjectEvent& TransactionEvent |
||
| bool | RemoveReferenceActor
(
AActor*const InActor |
Removes an actor from the reference list. | |
| void | SetReferenceActors
(
const TSet< FAvaAlignBetweenWeightedActor >& InReferenceActors |
Sets all reference actors and their weights. | |
| 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 | 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 | OnModifierDisabled
(
EActorModifierCoreDisableReason InReason |
Called when a modifier is disabled | |
| void | OnModifierEnabled
(
EActorModifierCoreEnableReason InReason |
Called when a modifier is enabled | |
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Overridden from IAvaTransformUpdateHandler
| Type | Name | Description | |
|---|---|---|---|
| void | OnTransformUpdated
(
AActor* InActor, |
Callback when a tracked actor transform changes |