Example #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="gameObject"></param>
        /// <param name="cloneMaterial"></param>
        /// <param name="width"></param>
        /// <param name="height"></param>
        public void SetWrapTarget(GameObject gameObject, bool cloneMaterial, int width, int height)
        {
            _content.SetWrapTarget(gameObject, cloneMaterial);
            sourceWidth  = width;
            sourceHeight = height;

            UpdateLayout();
        }
Example #2
0
 static int SetWrapTarget(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         FairyGUI.GoWrapper     obj  = (FairyGUI.GoWrapper)ToLua.CheckObject <FairyGUI.GoWrapper>(L, 1);
         UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 2, typeof(UnityEngine.GameObject));
         bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
         obj.SetWrapTarget(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }