C# Class Xsolla.DropDownController

Inheritance: UnityEngine.MonoBehaviour
ファイルを表示 Open project: xsolla/xsolla-unity-sdk Class Usage Examples

Public Properties

Property Type Description
OnItemSelected string>.Action
dropDownButton UnityEngine.UI.Button
dropDownItemPrefab UnityEngine.GameObject
dropDownList UnityEngine.Transform
dropDownText UnityEngine.UI.Text
scrollContainer UnityEngine.GameObject

Public Methods

Method Description
GetSelected ( ) : int
SelectItem ( int position, string name ) : void
SetData ( List items ) : void
SetData ( List items, string title ) : void
SetParentForScroll ( Transform newParent ) : void
Start ( ) : void
getItems ( ) : List

Method Details

GetSelected() public method

public GetSelected ( ) : int
return int

SelectItem() public method

public SelectItem ( int position, string name ) : void
position int
name string
return void

SetData() public method

public SetData ( List items ) : void
items List
return void

SetData() public method

public SetData ( List items, string title ) : void
items List
title string
return void

SetParentForScroll() public method

public SetParentForScroll ( Transform newParent ) : void
newParent UnityEngine.Transform
return void

Start() public method

public Start ( ) : void
return void

getItems() public method

public getItems ( ) : List
return List

Property Details

OnItemSelected public_oe property

public Action OnItemSelected
return string>.Action

dropDownButton public_oe property

public Button,UnityEngine.UI dropDownButton
return UnityEngine.UI.Button

dropDownItemPrefab public_oe property

public GameObject,UnityEngine dropDownItemPrefab
return UnityEngine.GameObject

dropDownList public_oe property

public Transform,UnityEngine dropDownList
return UnityEngine.Transform

dropDownText public_oe property

public Text,UnityEngine.UI dropDownText
return UnityEngine.UI.Text

scrollContainer public_oe property

public GameObject,UnityEngine scrollContainer
return UnityEngine.GameObject