OSAPercentageContentPaddingSetter Class |
Use this when the content padding should be a function of the viewport size, rather than a constant decided at edit-time.
In other words, use if you want to specify the padding as a percentage rather than in pixels. It also allows for fine adjustments of the first/last item, mostly useful for centering them.
A use case is keeping the last/first element in the middle when the content's extremity is reached. This can be done by setting a constant padding,
but having a percentage-specified padding allows for seamless screen size changes
Inheritance HierarchySystemObject Object Component Behaviour MonoBehaviour Com.ForbiddenByte.OSA.AdditionalComponentsOSAPercentageContentPaddingSetter
Namespace:
Com.ForbiddenByte.OSA.AdditionalComponents
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntaxpublic class OSAPercentageContentPaddingSetter : MonoBehaviour
The OSAPercentageContentPaddingSetter type exposes the following members.
Constructors
Version InformationOptimized ScrollView Adapter
Supported in: 4.3
See Also