Pinchable ScrollRect
LokoSolo Games
$0.0
Date |
Price |
---|---|
日期和时间 |
价钱($) |
02/17(2022) |
0.0 |
11/18(2024) |
0.0 |
Jump AssetStore
PinchableScrollRect allows user to zoom in and out on the Scroll Rect with both Touch Input and Mouse InputFeaturesCustomizable pinching behaviour with inherited Unity ScrollRect behaviour.Overridden OnScroll behaviour for mouse scroll to perform zooming behaviour.Customized pinching gesture to perform the same zooming behaviour as mouse scroll input for touches.Transformed standard Unity Event IPointerUp & IPointerDown interface into IPinch interface for further customization of touch behaviour.Getting StartedUse it same as the way you use the Unity ScrollRect component.Add a UI/ScrollView from the GameObject MenuSelect the ScrollRect added, click on the context dropdown menuSelect "Replace as Pinchable"Important RemarksWithout PinchInputDetector, the ScrollRect can still perform zooming with mouse scroll input but not touch input.The absolute minimum scale of the Content of the ScrollRect is 1. A customizable lower bound and upper bound of the scale can be set on inspector.Any third touches detected after pinching will be ignore, even after both pinching touches are lifted.UPM PackageAlso available on: GitHub / OpenUPMSupported on All Mobile Platform that Unity Supports