コード例 #1
0
 public static int SetPixels32_wrap(long L)
 {
     try
     {
         long nThisPtr              = FCLibHelper.fc_get_inport_obj_ptr(L);
         UnityEngine.Texture2D obj  = get_obj(nThisPtr);
         Color32[]             arg0 = null;
         arg0 = FCCustomParam.GetArray(ref arg0, L, 0);
         obj.SetPixels32(arg0);
     }
     catch (Exception e)
     {
         Debug.LogException(e);
     }
     return(0);
 }
コード例 #2
0
 public static int LoadRawTextureData_wrap(long L)
 {
     try
     {
         long nThisPtr             = FCLibHelper.fc_get_inport_obj_ptr(L);
         UnityEngine.Texture2D obj = get_obj(nThisPtr);
         byte[] arg0 = null;
         arg0 = FCCustomParam.GetArray(ref arg0, L, 0);
         obj.LoadRawTextureData(arg0);
     }
     catch (Exception e)
     {
         Debug.LogException(e);
     }
     return(0);
 }
コード例 #3
0
 public static int set_bones_wrap(long L)
 {
     try
     {
         long nThisPtr = FCLibHelper.fc_get_inport_obj_ptr(L);
         SkinnedMeshRenderer     ret  = get_obj(nThisPtr);
         UnityEngine.Transform[] arg0 = null;
         arg0      = FCCustomParam.GetArray(ref arg0, L, 0);
         ret.bones = arg0;
     }
     catch (Exception e)
     {
         Debug.LogException(e);
     }
     return(0);
 }
コード例 #4
0
 public static int set_materials_wrap(long L)
 {
     try
     {
         long                   nThisPtr = FCLibHelper.fc_get_inport_obj_ptr(L);
         TestExport             ret      = get_obj(nThisPtr);
         UnityEngine.Material[] arg0     = null;
         arg0          = FCCustomParam.GetArray(ref arg0, L, 0);
         ret.materials = arg0;
     }
     catch (Exception e)
     {
         Debug.LogException(e);
     }
     return(0);
 }
コード例 #5
0
 public static int  obj_new3(long L)
 {
     try
     {
         string        arg0 = FCLibHelper.fc_get_string_a(L, 0);
         System.Type[] arg1 = null;
         arg1 = FCCustomParam.GetArray(ref arg1, L, 1);
         GameObject obj  = new GameObject(arg0, arg1);
         long       nPtr = FCGetObj.PushNewObj <GameObject>(obj);
         long       ret  = FCLibHelper.fc_get_return_ptr(L);
         FCLibHelper.fc_set_value_intptr(ret, nPtr);
     }
     catch (Exception e)
     {
         Debug.LogException(e);
     }
     return(0);
 }
コード例 #6
0
 public static int PackTextures2_wrap(long L)
 {
     try
     {
         long      nThisPtr           = FCLibHelper.fc_get_inport_obj_ptr(L);
         Texture2D obj                = get_obj(nThisPtr);
         UnityEngine.Texture2D[] arg0 = null;
         arg0 = FCCustomParam.GetArray(ref arg0, L, 0);
         int    arg1 = FCLibHelper.fc_get_int(L, 1);
         Rect[] ret  = obj.PackTextures(arg0, arg1);
         FCCustomParam.ReturnArray(ret, L);
     }
     catch (Exception e)
     {
         Debug.LogException(e);
     }
     return(0);
 }
コード例 #7
0
 public static int GenerateAtlas_wrap(long L)
 {
     try
     {
         Vector2[] arg0 = null;
         arg0 = FCCustomParam.GetArray(ref arg0, L, 0);
         int         arg1 = FCLibHelper.fc_get_int(L, 1);
         int         arg2 = FCLibHelper.fc_get_int(L, 2);
         List <Rect> arg3 = null;
         arg3 = FCCustomParam.GetList(ref arg3, L, 3);
         bool ret     = UnityEngine.Texture2D.GenerateAtlas(arg0, arg1, arg2, arg3);
         long ret_ptr = FCLibHelper.fc_get_return_ptr(L);
         FCLibHelper.fc_set_value_bool(ret_ptr, ret);
     }
     catch (Exception e)
     {
         Debug.LogException(e);
     }
     return(0);
 }
コード例 #8
0
 public static int SetPixels3_wrap(long L)
 {
     try
     {
         long nThisPtr             = FCLibHelper.fc_get_inport_obj_ptr(L);
         UnityEngine.Texture2D obj = get_obj(nThisPtr);
         int     arg0 = FCLibHelper.fc_get_int(L, 0);
         int     arg1 = FCLibHelper.fc_get_int(L, 1);
         int     arg2 = FCLibHelper.fc_get_int(L, 2);
         int     arg3 = FCLibHelper.fc_get_int(L, 3);
         Color[] arg4 = null;
         arg4 = FCCustomParam.GetArray(ref arg4, L, 4);
         obj.SetPixels(arg0, arg1, arg2, arg3, arg4);
     }
     catch (Exception e)
     {
         Debug.LogException(e);
     }
     return(0);
 }