ManoMotion Unity SDK 2.0
SDK documentation
Loading...
Searching...
No Matches
ManoMotion.Demos.SceneSelection Class Reference

Manages the scene carousel.

Inheritance diagram for ManoMotion.Demos.SceneSelection:

Public Member Functions

void OnBeginDrag (PointerEventData eventData)
 
void OnEndDrag (PointerEventData eventData)
 
void Snap (int index)
 
void SetPosition (int index)
 

Properties

float CalculatedIndex [get]
 

Private Member Functions

void Start ()
 
void Update ()
 
void SnapToClosest ()
 

Private Attributes

bool isHorizontal = true
 
bool snapOnStart = true
 
ScrollRect scroll
 
RectTransform content
 
HorizontalOrVerticalLayoutGroup layoutGroup
 
float snapForce = 200f
 
int currentIndex = 0
 
SceneOption[] contentItems
 
UnityEvent< int > OnIndexSelected
 
bool isSnapped = false
 
float contentItemWidth
 
float contentItemHeight
 

Member Function Documentation

◆ OnBeginDrag()

void ManoMotion.Demos.SceneSelection.OnBeginDrag ( PointerEventData eventData)
inline

◆ OnEndDrag()

void ManoMotion.Demos.SceneSelection.OnEndDrag ( PointerEventData eventData)
inline

◆ SetPosition()

void ManoMotion.Demos.SceneSelection.SetPosition ( int index)
inline

◆ Snap()

void ManoMotion.Demos.SceneSelection.Snap ( int index)
inline

◆ SnapToClosest()

void ManoMotion.Demos.SceneSelection.SnapToClosest ( )
inlineprivate

◆ Start()

void ManoMotion.Demos.SceneSelection.Start ( )
inlineprivate

◆ Update()

void ManoMotion.Demos.SceneSelection.Update ( )
inlineprivate

Member Data Documentation

◆ content

RectTransform ManoMotion.Demos.SceneSelection.content
private

◆ contentItemHeight

float ManoMotion.Demos.SceneSelection.contentItemHeight
private

◆ contentItems

SceneOption [] ManoMotion.Demos.SceneSelection.contentItems
private

◆ contentItemWidth

float ManoMotion.Demos.SceneSelection.contentItemWidth
private

◆ currentIndex

int ManoMotion.Demos.SceneSelection.currentIndex = 0
private

◆ isHorizontal

bool ManoMotion.Demos.SceneSelection.isHorizontal = true
private

◆ isSnapped

bool ManoMotion.Demos.SceneSelection.isSnapped = false
private

◆ layoutGroup

HorizontalOrVerticalLayoutGroup ManoMotion.Demos.SceneSelection.layoutGroup
private

◆ OnIndexSelected

UnityEvent<int> ManoMotion.Demos.SceneSelection.OnIndexSelected
private

◆ scroll

ScrollRect ManoMotion.Demos.SceneSelection.scroll
private

◆ snapForce

float ManoMotion.Demos.SceneSelection.snapForce = 200f
private

◆ snapOnStart

bool ManoMotion.Demos.SceneSelection.snapOnStart = true
private

Property Documentation

◆ CalculatedIndex

float ManoMotion.Demos.SceneSelection.CalculatedIndex
getprivate