Experimental: this API is experimental and might be changed or removed in the future.

AttacherConstructor

Switch to Manual
public Attacher (UIElements.VisualElement anchored, UIElements.VisualElement target, SpriteAlignment alignment);

Parameters

anchoredThe element that will be positioned alongside the target.
targetThe target element.
alignmentRelative alignment between the attached element and the target.

Description

Attaches a visual element next to its target, regarless of their respective locations in the visual tree hierarchy.