Implements: BaseComponentView, ISectionSelectorComponentView, IComponentModelConfig
Model: SectionSelectorComponentModel
A dynamic section selector to create menus.
Sections: List of sections that will be created in the menu. Each section has the following configuration:Visual Configuration When SelectedSelectedIcon: Icon that will be showed in the section toggle when the section is selected.SelectedTitle: Text that will be showed in the section toggle when the section is selected.SelectedTextColor: Title color when the section is selected.SelectedImageColor: Icon color when the section is selected.BackgroundTransitionColorsForSelected: Background color when the section is selected.
Visual Configuration When UnselectedUnselectedIcon: Icon that will be showed in the section toggle when the section is unselected.UnselectedTitle: Text that will be showed in the section toggle when the section is unselected.UnselectedTextColor: Title color when the section is unselected.UnselectedImageColor: Icon color when the section is unselected.BackgroundTransitionColorsForUnselected: Background color when the section is unselected.
void Configure(BaseComponentModel newModel): Fills the model and refreshes the section selector component with this data.void SetSections(List<SectionToggleModel> sections): Set the sections of the selector.ISectionToggle GetSection(int index): Get a section of the section selector.List<ISectionToggle> GetAllSections(): Get all the sections of the section selector.
- Drag the prefab to your scene.
- Configure the model from the inspector.
- Click on [REFRESH].
