Navigation
API > API/Plugins > API/Plugins/AvalancheModifiers > API/Plugins/AvalancheModifiers/Modifiers
Inheritance Hierarchy
- UObject
- UActorModifierCoreBase
- UAvaBaseModifier
- UAvaAttachmentBaseModifier
- UAvaLookAtModifier
References
| Module | AvalancheModifiers |
| Header | /Engine/Plugins/Experimental/Avalanche/Source/AvalancheModifiers/Public/Modifiers/AvaLookAtModifier.h |
| Include | #include "Modifiers/AvaLookAtModifier.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType)
class UAvaLookAtModifier :
public UAvaAttachmentBaseModifier ,
public IAvaTransformUpdateHandler
Remarks
Rotates the modifying actor to point it's specified axis at another actor.
Variables
| Type | Name | Description | |
|---|---|---|---|
| EAvaAxis | Axis | The axis that will point towards the reference actor. | |
| bool | bDeprecatedPropertiesMigrated | ||
| bool | bFlipAxis | If true, will flip the look-at direction. | |
| FAvaSceneTreeActor | ReferenceActor | ||
| TWeakObjectPtr< AActor > | ReferenceActorWeak | The actor to look at. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| EAvaAxis | GetAxis () |
Returns the axis that will point towards t he reference actor. | |
| bool | GetFlipAxis () |
Returns true if flipping the look-at rotation axis. | |
| const FAvaSceneTreeActor & | |||
| void | |||
| void | PostTransacted
(
const FTransactionObjectEvent& TransactionEvent |
||
| void | Sets the axis that will point towards the reference actor. | ||
| void | SetFlipAxis
(
const bool bInFlipAxis |
Sets the look-at direction to be flipped. | |
| 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 | |
| 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, |
Overridden from IAvaTransformUpdateHandler
| Type | Name | Description | |
|---|---|---|---|
| void | OnTransformUpdated
(
AActor* InActor, |
Callback when a tracked actor transform changes |