A versatile Unity UI banner slider component for universal use
Create the following structure in the Hierarchy:
Canvas
└── BannerSlider (GameObject)
├── Viewport (Image - Mask component)
│ └── Content (RectTransform)
└── Indicators (GameObject, optional)
├── Indicator1 (Image, ImageType:Filled)
├── Indicator2 (Image, ImageType:Filled)
└── Indicator3 (Image, ImageType:Filled)
BannerSlider: Add BannerSlider scriptViewport: Image, Mask component, uncheck Show Mask GraphicContent: Set Anchor/Pivot based on slide direction (see table below)Indicators: Set Image Type to Filled for each indicator Image