unreal.ComponentReference

class unreal.ComponentReference(component_property: Name = 'None', other_actor: Actor = Ellipsis)

Bases: BaseComponentReference

Struct that allows for different ways to reference a component using TObjectPtr. If just an Actor is specified, will return RootComponent of that Actor.

C++ Source:

  • Module: Engine

  • File: EngineTypes.h

Editor Properties: (see get_editor_property/set_editor_property)

  • component_property (Name): [Read-Write] Component Property: Name of component to use. If this is not specified the reference refers to the root component.

  • other_actor (Actor): [Read-Write] Other Actor: Weak Pointer to a different Actor that owns the Component. If this is not provided the reference refers to a component on this / the same actor.

  • path_to_component (str): [Read-Write] Path to Component: Path to the component from its owner actor

property other_actor: Actor

[Read-Write] Other Actor: Weak Pointer to a different Actor that owns the Component. If this is not provided the reference refers to a component on this / the same actor.

Type:

(Actor)