UILabel.SetCurrentSelection C# (CSharp) Method

SetCurrentSelection() public method

Convenience function, in case you wanted to automatically set some label's text by selecting a value in the UIPopupList.
public SetCurrentSelection ( ) : void
return void
	public void SetCurrentSelection ()
	{
		if (UIPopupList.current != null)
		{
			text = UIPopupList.current.isLocalized ?
				Localization.Get(UIPopupList.current.value) :
				UIPopupList.current.value;
		}
	}

Usage Example

Esempio n. 1
0
    static int SetCurrentSelection(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        UILabel obj = (UILabel)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UILabel");

        obj.SetCurrentSelection();
        return(0);
    }
All Usage Examples Of UILabel::SetCurrentSelection