unreal.ActorModifierLookAtModifier

class unreal.ActorModifierLookAtModifier(outer: Object | None = None, name: Name | str = 'None')

Bases: ActorModifierAttachmentBaseModifier

Rotates the modifying actor to point it’s specified axis at another actor.

C++ Source:

  • Plugin: ActorModifier

  • Module: ActorModifierLayout

  • File: ActorModifierLookAtModifier.h

Editor Properties: (see get_editor_property/set_editor_property)

  • axis (ActorModifierAlignment): [Read-Write] deprecated: Use OrientationAxis instead

  • flip_axis (bool): [Read-Write] If true, will flip the look-at direction.

  • modifier_enabled (bool): [Read-Write] Is the modifier enabled or disabled

  • orientation_axis (ActorModifierAxis): [Read-Write] The axis to orient look at

  • reference_actor (ActorModifierSceneTreeActor): [Read-Write]

  • reference_actor_weak (Actor): [Read-Write] The actor to look at. deprecated: Use ReferenceActor instead

property axis: ActorModifierAlignment

[Read-Write] deprecated: Use OrientationAxis instead

Type:

(ActorModifierAlignment)

get_flip_axis() bool

Returns true if flipping the look-at rotation axis.

Return type:

bool

get_orientation_axis() ActorModifierAxis

Returns the axis that will point towards the reference actor.

Return type:

ActorModifierAxis

get_reference_actor() ActorModifierSceneTreeActor

Get Reference Actor

Return type:

ActorModifierSceneTreeActor

property reference_actor_weak: Actor

[Read-Write] The actor to look at. deprecated: Use ReferenceActor instead

Type:

(Actor)

set_flip_axis(flip_axis) None

Sets the look-at direction to be flipped.

Parameters:

flip_axis (bool)

set_orientation_axis(axis) None

Sets the axis that will point towards the reference actor.

Parameters:

axis (ActorModifierAxis)

set_reference_actor(reference_actor) None

Set Reference Actor

Parameters:

reference_actor (ActorModifierSceneTreeActor)