BaseParamsEffects Class |
Namespace: Com.ForbiddenByte.OSA.Core
[SerializableAttribute] public class Effects
The BaseParamsEffects type exposes the following members.
Name | Description | |
---|---|---|
BaseParamsEffects |
Name | Description | |
---|---|---|
ContentVisualParallaxEffect | ||
HasContentVisual |
Name | Description | |
---|---|---|
InitIfNeeded |
Name | Description | |
---|---|---|
contentVisual | ||
DEFAULT_MAX_SPEED | ||
elasticMovement | ||
galleryEffectAmount | 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 | |
galleryEffectViewportPivot | 0=start, 1=end | |
inertia | ||
inertiaDecelerationRate | What amount of the velociy will be lost per second after the drag ended | |
loopItems | 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 | |
MAX_SPEED | ||
MAX_SPEED_IF_LOOPING | ||
maxSpeed | ||
pullElasticity | ||
releaseTime |