FairyGUI.ScrollPane.SetPosY C# (CSharp) Method

SetPosY() public method

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

            value = Mathf.Clamp(value, 0, _yOverlap);
            if (value != _yPos)
            {
                _yPos = value;
                _yPerc = _yOverlap == 0 ? 0 : _yPos / _yOverlap;
                PosChanged(ani);
            }
        }

Usage Example

 static int SetPosY(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.SetPosY(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
All Usage Examples Of FairyGUI.ScrollPane::SetPosY