Back to API Reference
Struct
TextMenuPlacement
sealed
Where a text context menu opens and what opened it.
public Vector2 Point{ get }Screen point, in Unity screen pixels, the menu was asked for at: the pointer of a right-click or pen press, the finger of a touch gesture, the caret or the selection for the keyboard, or the point passed to RequestContextMenu.
public Rect Target{ get }Screen rect the menu keeps clear of while HasTarget holds: the selection, or the caret's line box for a collapsed selection, clipped to the visible text, together with the touch handles shown on it. For the keyboard it is the caret's line box, or the selection while the caret is out of view.
public TextMenuTrigger Trigger{ get }What opened the menu, which decides where it sits and whether it holds the keyboard.
