Skip to content

achintar0/unity-selection-carousel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Unity Selection Carousel

This is a script i've made for Unity3D, which provides an algorithm for managing a list of targets, by creating an item carousel for it. With the item carousel you gain the ability to control items (for example a 4 target camera system, where with a press of the arrows, you swap to the next/previous camera).

Example:

unity-carousel

This can be used in multiple projects such as: A character selection screen, an item selection/viewer, auto camera swap etc.

How to use:

  1. Upload the script to your project.
  2. Create a group with objects and a parent.
  3. Inherit the script to your class.
  4. Inititalise the group of objects by calling the function Init_SelecTargets(GameObject targetParent).
  5. Adjust your code, so whenever you want to move to the next item in the carousel, by calling the NextTarget() or PrevTarget() functions.

Class-Diagram:

untiy-target-carousel

About

A script to help creating an item selection carousel for unity games.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages