楼主找到C#版本了吗
unity开发的微信小游戏如何实现跳转到另一个小游戏?unity开发的微信小游戏如何实现跳转到另一个小游戏?
10-22[图片]
unity 转 微信小游戏 在函数中设置二维数组成员值 似乎存在bugunity 转 微信小游戏 在函数中设置二维数组成员值 似乎存在bug,遇到两次了,赋值后不能生效在 运行 array[i, j] = list[i][j];后,array[i, j] 值仍为修改之前值。 public T[,] ConvertToArray<T>(List<List<T>> list) { Debug.Log("list"); PrintList(list); int numRows = list.Count; int numColumns = list[0].Count; T[,] array = new T[numRows, numColumns]; for (int i = 0; i < numRows; i++) { for (int j = 0; j < numColumns; j++) { array[i, j] = list[i][j]; } } Debug.Log("array"); PrintArray(array); return array; } public static void Set<T>(this T[,] Array, Vector2Int index,T value) { Array[index.x, index.y] = value; }
2023-12-22一样的问题,请问解决了吗
Unity转小程序报错WXUncaughtException?2023-12-12 16:58:20 [warn] MiniProgramError WXUncaughtException Error: WXUncaughtException at currentStackTrace (http://127.0.0.1:47003/game/unity-sdk/util.js:57:17) at Object.WXUncaughtException (http://127.0.0.1:47003/game/unity-sdk/util.js:60:15) at abort (http://127.0.0.1:47003/game/webgl.wasm.framework.unityweb.js:4:984) at ___cxa_allocate_exception (http://127.0.0.1:47003/game/webgl.wasm.framework.unityweb.js:4:168421) at il2cpp::vm::Exception::Raise(Il2CppException*, MethodInfo*) (<anonymous>:wasm-function[1390]:0x6d6b5) at il2cpp_codegen_raise_exception(Exception_t*, MethodInfo*) (<anonymous>:wasm-function[1024]:0x60db3) at FileSystemEnumerator_1_CreateDirectoryHandle_mEEF0C622F63542DC2CE7E77CB3AFC9DA1E18E9F3_gshared (<anonymous>:wasm-function[83703]:0x1675e84) at RuntimeInvoker_TrueInt32_t680FF22E76F6EFAD4375103CBBFFA0421349384C_RuntimeObject_SByte_tFEFFEF5D2FEBF5207950AE6FAC150FC53B668DB5(void (*)(), MethodInfo const*, void*, void**, void*) (<anonymous>:wasm-function[10640]:0x2d21e1) at InvokerFuncInvoker2<Il2CppObject*, MemberInfo_t*, bool>::Invoke(void (*)(), MethodInfo const*, void*, MemberInfo_t*, bool) (<anonymous>:wasm-function[2192]:0x8d772) at FileSystemEnumerator_1__ctor_m300879BC00268E4219FFD160B9867D6C8939F379_gshared (<anonymous>:wasm-function[83689]:0x16745af) at RuntimeInvoker_TrueVoid_t4861ACF8F4594C3437BB48B6E56783494B843915_VoidU2A_t104EAEFBD2D237A8C29618913DA9B4D99355E965_VoidU2A_t104EAEFBD2D237A8C29618913DA9B4D99355E965(void (*)(), MethodInfo const*, void*, void**, void*) (<anonymous>:wasm-function[13756]:0x3b4bd0) at InvokerActionInvoker2<LightU5BU5D_tDA7C763E668D91E53318509D94BC0CF10B8AB990*, NativeArray_1_tDF6A1978B5813BF4DAD7948E398009FFC9BEA38D>::Invoke(void (*)(), MethodInfo const*, void*, LightU5BU5D_tDA7C763E668D91E53318509D94BC0CF10B8AB990*, NativeArray_1_tDF6A1978B5813BF4DAD7948E398009FFC9BEA38D) (<anonymous>:wasm-function[1199]:0x66963) at DelegateEnumerator__ctor_m1A7283B52893097180E973505B0A48748E8DD4F9_gshared (<anonymous>:wasm-function[85991]:0x16e1d26) at RuntimeInvoker_TrueVoid_t4861ACF8F4594C3437BB48B6E56783494B843915_VoidU2A_t104EAEFBD2D237A8C29618913DA9B4D99355E965(void (*)(), MethodInfo const*, void*, void**, void*) (<anonymous>:wasm-function[34327]:0xb41b4f) at InvokerActionInvoker1<XsdBuilder_t8B36A7D7B0B11B33510A548BBA3331FFAF863794*>::Invoke(void (*)(), MethodInfo const*, void*, XsdBuilder_t8B36A7D7B0B11B33510A548BBA3331FFAF863794*) (<anonymous>:wasm-function[1080]:0x634e9) at FileSystemEnumerable_1__ctor_m4E2313D400FC3E453A587B053674FFB66F71FEA8_gshared (<anonymous>:wasm-function[40812]:0xd35063) at FileSystemEnumerable_1__ctor_m8CACA54C7675FE41E6A1A8B4D279FE3AA5B5C812(FileSystemEnumerable_1_tF87C4E8695D9DF204B68A5EE4054C3B765F86376*, String_t*, FindTransform_t29F67D66AC165CC30E712816DBDF9D6706687246*, EnumerationOptions_t7C636684933367EC8E4B428073BF1FD4C5CDCA0B*, MethodInfo const*) (<anonymous>:wasm-function[22045]:0x6a2e83) at FileSystemEnumerableFactory_UserFiles_mA731212A23D5A273922BD512585E572C579D9BDE (<anonymous>:wasm-function[40814]:0xd351f5) at Directory_InternalEnumeratePaths_m47FA92CB76D8950DD087BC4C6B182DBD13650F96 (<anonymous>:wasm-function[42223]:0xd82b2d) at Directory_GetFiles_m06D4F718E49C880F55FA3E717B70A8996C57D6FA (<anonymous>:wasm-function[22545]:0x6bae90) at Directory_GetFiles_m4B12F04FB52DA5311463669EBB83321CB0CF284B (<anonymous>:wasm-function[15137]:0x40c40c) at MainScene_init_m1F85746CD19A4E1CE9C2537F8C91E07D380795DE (<anonymous>:wasm-function[37488]:0xc62d36) at MainScene_Start_mCC35BFF72EE7240E15359FAEBFD97D87AEA78ABC (<anonymous>:wasm-function[77406]:0x151ad14) at RuntimeInvoker_TrueVoid_t4861ACF8F4594C3437BB48B6E56783494B843915(void (*)(), MethodInfo const*, void*, void**, void*) (<anonymous>:wasm-function[70002]:0x138a303) at il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const*, void*, void**) (<anonymous>:wasm-function[9714]:0x2944fc) at il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**) (<anonymous>:wasm-function[2597]:0xa3b6f) at il2cpp_runtime_invoke (<anonymous>:wasm-function[25906]:0x8cb427) at scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool) (<anonymous>:wasm-function[12079]:0x33659d) at ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool) (<anonymous>:wasm-function[1392]:0x6d719) at MonoBehaviour::InvokeMethodOrCoroutineChecked(ScriptingMethodPtr, ScriptingObjectPtr) (<anonymous>:wasm-function[7377]:0x1cf3dc) at MonoBehaviour::DelayedStartCall(Object*, void*) (<anonymous>:wasm-function[76318]:0x14dc8fa) at DelayedCallManager::Update(int) (<anonymous>:wasm-function[86006]:0x16e23f6) at InitPlayerLoopCallbacks()::EarlyUpdateScriptRunDelayedStartupFrameRegistrator::Forward() (<anonymous>:wasm-function[80947]:0x15d0abd) at ExecutePlayerLoop(NativePlayerLoopSystem*) (<anonymous>:wasm-function[41252]:0xd4db50) at ExecutePlayerLoop(NativePlayerLoopSystem*) (<anonymous>:wasm-function[41252]:0xd4dbc1) at MainLoop() (<anonymous>:wasm-function[20791]:0x6578dc) at dynCall_v (<anonymous>:wasm-function[49644]:0x100b9c9) at browserIterationFunc (http://127.0.0.1:47003/game/webgl.wasm.framework.unityweb.js:19:48016) at callUserCallback (http://127.0.0.1:47003/game/webgl.wasm.framework.unityweb.js:19:513) at Object.runIter (http://127.0.0.1:47003/game/webgl.wasm.framework.unityweb.js:19:1810) at Browser_mainLoop_runner (http://127.0.0.1:47003/game/webgl.wasm.framework.unityweb.js:17:46) at Function.<anonymous> (http://127.0.0.1:47003/game/unity-sdk/fix.js:67:9) at http://127.0.0.1:47003/game/__dev__/WAGameSubContext.js:1:190616 at Function.cbWithTimeStamp (http://127.0.0.1:47003/game/gamePage.html:58:16) at p (http://127.0.0.1:47003/game/__dev__/WAGame.js:1:194134) at http://127.0.0.1:47003/game/__dev__/WAGame.js:1:194577 at http://127.0.0.1:47003/game/__dev__/WAGame.js:1:148377 [图片] 开发者工具:Stable 1.06.2310080 系统:Win10 Unity版本 2021.2.5f1c302 插件版本:202312121609
2023-12-19