ManoMotion SDK PRO  1.4.8
ManoMotion SDK PRO API documentation
Category Class Reference

Used to sort and layout the icons in the Main Feature Menu More...

Inheritance diagram for Category:

Public Member Functions

void CalculateDimensions ()
 Calculates the dimensions. More...
 

Data Fields

string categoryName
 
int categoryOrder
 
GameObject[] icons
 
List< UIIconBehavioriconBehaviors = new List<UIIconBehavior>()
 
int categoryHeight
 
int numberOfRows
 
int maxIconsForRow
 
float categoryPositionY
 
GameObject[,] iconArray
 

Private Member Functions

void Awake ()
 
void Start ()
 
void InitializeUIValues ()
 Initializes the values needed for the UI in order to be responsive. More...
 
IEnumerator Calculate ()
 Calculate the dimensions of each category in order to align the icons. More...
 
IEnumerator AlignIcons ()
 Aligns the icons. More...
 
void InitializeIconBehaviors ()
 

Private Attributes

int defaultHeight = 160
 
int extraHeightForRow = 100
 
int iconWidth = 60
 
int iconLeftMargin
 
int iconRightMargin
 
int iconSpaceTaken
 
int categoryWidth
 
RectTransform rt
 

Detailed Description

Used to sort and layout the icons in the Main Feature Menu

Member Function Documentation

◆ AlignIcons()

IEnumerator Category.AlignIcons ( )
inlineprivate

Aligns the icons.

Returns
The icons.

◆ Awake()

void Category.Awake ( )
inlineprivate

◆ Calculate()

IEnumerator Category.Calculate ( )
inlineprivate

Calculate the dimensions of each category in order to align the icons.

Returns
The calculate.

◆ CalculateDimensions()

void Category.CalculateDimensions ( )
inline

Calculates the dimensions.

◆ InitializeIconBehaviors()

void Category.InitializeIconBehaviors ( )
inlineprivate

◆ InitializeUIValues()

void Category.InitializeUIValues ( )
inlineprivate

Initializes the values needed for the UI in order to be responsive.

◆ Start()

void Category.Start ( )
inlineprivate

Field Documentation

◆ categoryHeight

int Category.categoryHeight

◆ categoryName

string Category.categoryName

◆ categoryOrder

int Category.categoryOrder

◆ categoryPositionY

float Category.categoryPositionY

◆ categoryWidth

int Category.categoryWidth
private

◆ defaultHeight

int Category.defaultHeight = 160
private

◆ extraHeightForRow

int Category.extraHeightForRow = 100
private

◆ iconArray

GameObject [,] Category.iconArray

◆ iconBehaviors

List<UIIconBehavior> Category.iconBehaviors = new List<UIIconBehavior>()

◆ iconLeftMargin

int Category.iconLeftMargin
private

◆ iconRightMargin

int Category.iconRightMargin
private

◆ icons

GameObject [] Category.icons

◆ iconSpaceTaken

int Category.iconSpaceTaken
private

◆ iconWidth

int Category.iconWidth = 60
private

◆ maxIconsForRow

int Category.maxIconsForRow

◆ numberOfRows

int Category.numberOfRows

◆ rt

RectTransform Category.rt
private

The documentation for this class was generated from the following file: