Navigation
API > API/Plugins > API/Plugins/AvalancheModifiers > API/Plugins/AvalancheModifiers/Modifiers
Inheritance Hierarchy
- UObject
- UActorModifierCoreBase
- UAvaBaseModifier
- UAvaAttachmentBaseModifier
- UAvaAutoFollowModifier
References
| Module | AvalancheModifiers |
| Header | /Engine/Plugins/Experimental/Avalanche/Source/AvalancheModifiers/Public/Modifiers/AvaAutoFollowModifier.h |
| Include | #include "Modifiers/AvaAutoFollowModifier.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType)
class UAvaAutoFollowModifier :
public UAvaAttachmentBaseModifier ,
public IAvaTransformUpdateHandler ,
public IAvaRenderStateUpdateHandler
Remarks
Moves the modifying actor along with a specified actor relative to the specified actor's bounds.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FVector | DefaultDistance | The distance from this actor to the followed actor. | |
| FAvaAnchorAlignment | FollowedAlignment | The alignment for the followed actor's center. | |
| int32 | FollowedAxis | Which axis should we follow | |
| FAvaAnchorAlignment | LocalAlignment | The alignment for this actor's center. | |
| FVector | MaxDistance | The maximum distance from this actor to the followed actor. | |
| FVector | OffsetAxis | Based on followed axis, the direction to offset this actor from the followed actor's bounds. | |
| FVector | Progress | Percent % progress from the maximum distance to the default distance. | |
| FAvaSceneTreeActor | ReferenceActor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FVector | Gets the distance from this actor to the followed actor. | ||
| FAvaAnchorAlignment | Gets the alignment for the followed actor's center. | ||
| int32 | |||
| FAvaAnchorAlignment | Gets the alignment for this actor's center. | ||
| FVector | Gets the maximum distance from this actor to the followed actor. | ||
| FVector | Gets the axis direction to offset this actor from the followed actor's bounds. | ||
| FVector | GetProgress () |
Gets the percent % progress from the maximum distance to the default distance. | |
| const FAvaSceneTreeActor & | |||
| void | |||
| void | |||
| void | PostTransacted
(
const FTransactionObjectEvent& TransactionEvent |
||
| void | SetDefaultDistance
(
const FVector& InDefaultDistance |
Sets the distance from this actor to the followed actor. | |
| void | SetFollowedAlignment
(
const FAvaAnchorAlignment& InFollowedAlignment |
Sets the alignment for the followed actor's center. | |
| void | SetFollowedAxis
(
int32 InFollowedAxis |
||
| void | SetLocalAlignment
(
const FAvaAnchorAlignment& InLocalAlignment |
Sets the alignment for this actor's center. | |
| void | SetMaxDistance
(
const FVector& InMaxDistance |
Sets the maximum distance from this actor to the followed actor. | |
| void | SetOffsetAxis
(
const FVector& InOffsetAxis |
Sets the axis direction to offset this actor from the followed actor's bounds. | |
| void | SetProgress
(
const FVector& InProgress |
Sets the percent % progress from the maximum distance to the default distance. | |
| void | SetReferenceActor
(
const FAvaSceneTreeActor& InReferenceActor |
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 | |
| bool | You can do additional lightweights checks here in case you want to dirty the modifier instead of waiting for an event, tick must be enabled in the metadata | ||
| 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 |
||
| void | PostLoad () |
Overridden from IAvaSceneTreeUpdateHandler
| Type | Name | Description | |
|---|---|---|---|
| void | OnSceneTreeTrackedActorChanged
(
int32 InIdx, |
||
| void | OnSceneTreeTrackedActorChildrenChanged
(
int32 InIdx, |
Overridden from IAvaTransformUpdateHandler
| Type | Name | Description | |
|---|---|---|---|
| void | OnTransformUpdated
(
AActor* InActor, |
Callback when a tracked actor transform changes |
Overridden from IAvaRenderStateUpdateHandler
| Type | Name | Description | |
|---|---|---|---|
| void | OnActorVisibilityChanged
(
AActor* InActor |
Callback when a tracked actor visibility has changed | |
| void | OnRenderStateUpdated
(
AActor* InActor, |
Callback when a render state actor in this world changes |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bIgnoreHiddenActors_DEPRECATED | If true, will search for the next visible actor based on the selected reference container. | |
| TWeakObjectPtr< AActor > | ReferenceActorWeak_DEPRECATED | The actor being followed by the modifier. | |
| EAvaReferenceContainer | ReferenceContainer_DEPRECATED | The method for finding a reference actor based on it's position in the parent's hierarchy. |