UILabel.SetCurrentSelection C# (CSharp) Méthode

SetCurrentSelection() public méthode

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

Usage Example

    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