Drag Area
The DragArea allows its content to be dragged around inside of it using the mouse wheel or pointer interactions.
The content is added to a Holder element that can be independently styled from the DragArea itself.
Props
VisualAttributes visualAttributes: Styling information. Expanded inCreatemethod.VisualAttributes holderVisualAttributes: Styling information for the holder element. Expanded inCreatemethod.DragArea.VisualBehavior behavior:Default(content is allowed to go a little over the limit and returns to the limit when released),Stretchy(content stretches when trying to go over the limit),Clamped(content is not allowed to go over the limits).DragArea.AxisOfFreedom axisOfFreedom:None,Vertical,HorizontalorVerticalAndHorizontal.Translate initialOffset: Initial offset ofcontentwithin theDragArea.Element content: The visual content of theDragArea.Length? extraMargin: Extra margin allowed forDefaultorStretchybehavior. Default to 5%.float? mouseWheelMultiplier: Multiplier to adjust mouse wheel sensitivity. If not set, 30 is used by default.Vector2? offset: The offset ofcontentwithin theDragArea. If not set,contentposition is fully controlled byDragArea.Action<Vector2> onOffset: Callback that gets called whencontentis dragged around.