FairyGUI.GMovieClip.SetPlaySettings C# (CSharp) Method

SetPlaySettings() public method

Play from the start to end, repeat times, set to endAt on complete. 从start帧开始,播放到end帧(-1表示结尾),重复times次(0表示无限循环),循环结束后,停止在endAt帧(-1表示参数end)
public SetPlaySettings ( int start, int end, int times, int endAt ) : void
start int Start frame
end int End frame. -1 indicates the last frame.
times int Repeat times. 0 indicates infinite loop.
endAt int Stop frame. -1 indicates to equal to the end parameter.
return void
        public void SetPlaySettings(int start, int end, int times, int endAt)
        {
            ((MovieClip)displayObject).SetPlaySettings(start, end, times, endAt);
        }

Usage Example

示例#1
0
 static int SetPlaySettings(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 5);
         FairyGUI.GMovieClip obj = (FairyGUI.GMovieClip)ToLua.CheckObject <FairyGUI.GMovieClip>(L, 1);
         int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
         int arg2 = (int)LuaDLL.luaL_checknumber(L, 4);
         int arg3 = (int)LuaDLL.luaL_checknumber(L, 5);
         obj.SetPlaySettings(arg0, arg1, arg2, arg3);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
All Usage Examples Of FairyGUI.GMovieClip::SetPlaySettings