Back to API Reference
Class

UniTextPasteControl

sealed
Inherits:MonoBehaviour

Cross-platform Paste widget. On iOS 16+ overlays a native UIPasteControl on top of this RectTransform (bypasses the system paste-permission prompt). Elsewhere triggers Paste through an optional sibling/child Button.

public UniTextEditable Target{ get; set }

Editable text receiving pasted content.

public Button FallbackButton{ get; set }

Unity button used when a native paste control is unavailable.

public PasteControlDisplayMode DisplayMode{ get; set }

Content displayed by the native iOS paste control.

public PasteControlCornerStyle CornerStyle{ get; set }

Corner treatment used by the native iOS paste control.

public void TriggerPaste()

Programmatic paste through Paste. On iOS 16+ outside a user-action context this surfaces the system prompt — prefer the native overlay (real tap) on that OS.

public Action Pasted

Occurs when a paste has succeeded (native overlay tap or fallback click).