- Create a new
GameObjectin your scene. - Attach the
VerticalScroll(orHorizontalScroll) script to this GameObject.
- Create the content objects you want to swipe through.
These can be placed anywhere in the scene β the script will handle their position and hierarchy.
- In the Inspector for the swipe panel GameObject, locate the "Buffer List".
- Add your content objects to the Buffer List.
- The swipe panel is designed for full-screen-sized objects.
Resizing is handled programmatically in the script.
- All panel items must have a default scale of
(1, 1, 1).
- The scripts are written without Canvas Scaler.
Behavior with a Canvas Scaler is currently untested.