Back to API Reference
Class
UniTextDocumentView
sealed
Inherits:UIBehaviour
Implements:IInitializePotentialDragHandlerIBeginDragHandlerIDragHandlerIEndDragHandlerIScrollHandler
Scrolls a document text. This RectTransform is the viewport: the text below it is stretched to fill it, and what scrolls is the text's own DocumentTop — a block and an offset into it, so nothing under the viewport moves when the estimated heights above it are corrected. Drag, wheel, inertia and elastic ends behave as uGUI's Scroll Rect does; uGUI scrollbars attach as usual, and a RectMask2D on the viewport clips, as in any scroll view.
