Click or drag to resize

BaseParamsEffects Class

Inheritance Hierarchy
SystemObject
  Com.ForbiddenByte.OSA.CoreBaseParamsEffects

Namespace:  Com.ForbiddenByte.OSA.Core
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
[SerializableAttribute]
public class Effects

The BaseParamsEffects type exposes the following members.

Constructors
Properties
Methods
  NameDescription
Public methodInitIfNeeded
Top
Fields
  NameDescription
Public fieldcontentVisual
Public fieldStatic memberDEFAULT_MAX_SPEED
Public fieldelasticMovement
Public fieldgalleryEffectAmount
Applies 1 scale for the item in the middle and gradually lowers the scale of the side items. 0=no effect, 1=the most sideways items will have 0 scale. galleryEffectViewportPivot can be used to apply scaling weight in other place than the middle
Public fieldgalleryEffectViewportPivot
0=start, 1=end
Public fieldinertia
Public fieldinertiaDecelerationRate
What amount of the velociy will be lost per second after the drag ended
Public fieldloopItems

If true: When the last item is reached, the first one appears after it, basically allowing you to scroll infinitely.

Initially intended for things like spinners, but it can be used for anything alike. It may interfere with other functionalities in some very obscure/complex contexts/setups, so be sure to test the hell out of it.

Also please note that sometimes during dragging the content, the actual looping changes the Unity's internal PointerEventData for the current click/touch pointer id,

so if you're also externally tracking the current click/touch, in this case only 'PointerEventData.pointerCurrentRaycast' and 'PointerEventData.position'(current position) are

preserved, the other ones are reset to defaults to assure a smooth loop transition

Public fieldStatic memberMAX_SPEED
Public fieldStatic memberMAX_SPEED_IF_LOOPING
Public fieldmaxSpeed
Public fieldpullElasticity
Public fieldreleaseTime
Top
Version Information

Optimized ScrollView Adapter

Supported in: 4.1
See Also