From b8a3a5897b88c8294055ed179feea69d526c484f Mon Sep 17 00:00:00 2001 From: ZombieKitty Date: Sun, 26 Jan 2025 04:56:43 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E4=B8=80=E4=BA=9B=E4=B8=8D?= =?UTF-8?q?=E5=BF=85=E8=A6=81=E7=9A=84=E6=97=A5=E5=BF=97=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=89=93=E5=8D=B0Table=E7=9A=84LUA=20=E5=87=BD?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ousandto_Core_Asset_AnimationPlayerWrap.cs | 2 +- .../GameUI/XLua/Gen/XLuaGenAutoRegister.cs | 2 +- .../Common/CustomLib/Utility/UnityUtils.lua | 35 +++++++++++++++++++ 3 files changed, 37 insertions(+), 2 deletions(-) diff --git a/Assets/GameAssets/Resources/GameUI/XLua/Gen/Thousandto_Core_Asset_AnimationPlayerWrap.cs b/Assets/GameAssets/Resources/GameUI/XLua/Gen/Thousandto_Core_Asset_AnimationPlayerWrap.cs index 8ab1972e9..e4283124b 100644 --- a/Assets/GameAssets/Resources/GameUI/XLua/Gen/Thousandto_Core_Asset_AnimationPlayerWrap.cs +++ b/Assets/GameAssets/Resources/GameUI/XLua/Gen/Thousandto_Core_Asset_AnimationPlayerWrap.cs @@ -20,7 +20,7 @@ namespace XLua.CSObjectWrap { public static void __Register(RealStatePtr L) { - Debug.Log("<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"); + ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(Thousandto.Core.Asset.AnimationPlayer); Utils.BeginObjectRegister(type, L, translator, 0, 14, 13, 2); diff --git a/Assets/GameAssets/Resources/GameUI/XLua/Gen/XLuaGenAutoRegister.cs b/Assets/GameAssets/Resources/GameUI/XLua/Gen/XLuaGenAutoRegister.cs index f47dfbb4e..7dcfbedcd 100644 --- a/Assets/GameAssets/Resources/GameUI/XLua/Gen/XLuaGenAutoRegister.cs +++ b/Assets/GameAssets/Resources/GameUI/XLua/Gen/XLuaGenAutoRegister.cs @@ -653,7 +653,7 @@ namespace XLua.CSObjectWrap static void wrapInit4(LuaEnv luaenv, ObjectTranslator translator) { - Debug.Log(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> wrapInit4"); + translator.DelayWrapLoader(typeof(Thousandto.Code.Logic.FSkinModelConfig), ThousandtoCodeLogicFSkinModelConfigWrap.__Register); diff --git a/Assets/GameAssets/Resources/Lua/Common/CustomLib/Utility/UnityUtils.lua b/Assets/GameAssets/Resources/Lua/Common/CustomLib/Utility/UnityUtils.lua index b3e7cabb3..7ea984edd 100644 --- a/Assets/GameAssets/Resources/Lua/Common/CustomLib/Utility/UnityUtils.lua +++ b/Assets/GameAssets/Resources/Lua/Common/CustomLib/Utility/UnityUtils.lua @@ -231,4 +231,39 @@ function UnityUtils.UNITY_WINDOWS() return L_UNITY_WINDOWS() end +-- 打印table +function print_r ( t ) + local print_r_cache={} + local function sub_print_r(t,indent) + if (print_r_cache[tostring(t)]) then + print(indent.."*"..tostring(t)) + else + print_r_cache[tostring(t)]=true + if (type(t)=="table") then + for pos,val in pairs(t) do + if (type(val)=="table") then + print(indent.."["..pos.."] => "..tostring(t).." {") + sub_print_r(val,indent..string.rep(" ",string.len(pos)+8)) + print(indent..string.rep(" ",string.len(pos)+6).."}") + elseif (type(val)=="string") then + print(indent.."["..pos..'] => "'..val..'"') + else + print(indent.."["..pos.."] => "..tostring(val)) + end + end + else + print(indent..tostring(t)) + end + end + end + if (type(t)=="table") then + print(tostring(t).." {") + sub_print_r(t," ") + print("}") + else + sub_print_r(t," ") + end + print() +end + return UnityUtils