UILabel.SetCurrentProgress C# (CSharp) Méthode

SetCurrentProgress() public méthode

Convenience function, in case you wanted to associate progress bar, slider or scroll bar's OnValueChanged function in inspector with a label.
public SetCurrentProgress ( ) : void
Résultat void
	public void SetCurrentProgress ()
	{
		if (UIProgressBar.current != null)
			text = UIProgressBar.current.value.ToString("F");
	}

Usage Example

    static int SetCurrentProgress(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        UILabel obj = (UILabel)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UILabel");

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