unreal.RigUnit_FindClosestItem

class unreal.RigUnit_FindClosestItem(execute_pin: RigVMExecutePin = [], items: None = [], point: Vector = Ellipsis, item: RigElementKey = Ellipsis)

Bases: RigUnitMutable

Returns the item with the closest distance to the provided point in global space.

C++ Source:

  • Plugin: ControlRig

  • Module: ControlRig

  • File: RigUnit_FindClosestItem.h

Editor Properties: (see get_editor_property/set_editor_property)

  • execute_pin (RigVMExecutePin): [Read-Write] This property is used to chain multiple mutable units together

  • item (RigElementKey): [Read-Write] The item closest to the provided point

  • items (Array[RigElementKey]): [Read-Write] The list of items to test

  • point (Vector): [Read-Write] The point in global space to test against

property item: RigElementKey

[Read-Only] The item closest to the provided point

Type:

(RigElementKey)

property items: None

[Read-Write] The list of items to test

Type:

(Array[RigElementKey])

property point: Vector

[Read-Write] The point in global space to test against

Type:

(Vector)