FairyGUI.ScrollPane.SetPercY C# (CSharp) Method

SetPercY() public method

public SetPercY ( float value, bool ani ) : void
value float
ani bool
return void
        public void SetPercY(float value, bool ani)
        {
            _owner.EnsureBoundsCorrect();

            value = Mathf.Clamp01(value);
            if (value != _yPerc)
            {
                _yPerc = value;
                _yPos = _yPerc * _yOverlap;
                PosChanged(ani);
            }
        }

Usage Example

 static int SetPercY(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         FairyGUI.ScrollPane obj = (FairyGUI.ScrollPane)ToLua.CheckObject(L, 1, typeof(FairyGUI.ScrollPane));
         float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
         bool  arg1 = LuaDLL.luaL_checkboolean(L, 3);
         obj.SetPercY(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
All Usage Examples Of FairyGUI.ScrollPane::SetPercY