mirror of
https://github.com/originalnicodr/CinematicUnityExplorer.git
synced 2026-10-12 02:18:04 +08:00
2.1.0
* Fix a bug with Il2Cpp reflection causing TargetInvocationException and other weird issues.
This commit is contained in:
1 parent
4263cef26a
commit
f4ba14cd13
4 files changed
+24
-4
No files matched your search
@@ -49,6 +49,7 @@ namespace Explorer.Tests
|
||||
|
||||
#if CPP
|
||||
public static Il2CppSystem.Collections.Generic.HashSet<string> ILHashSetTest;
|
||||
public static Il2CppReferenceArray<Il2CppSystem.Object> testRefArray;
|
||||
#endif
|
||||
|
||||
public TestClass()
|
||||
@@ -64,6 +65,12 @@ namespace Explorer.Tests
|
||||
GameObject.DontDestroyOnLoad(TestTexture);
|
||||
GameObject.DontDestroyOnLoad(TestSprite);
|
||||
|
||||
testRefArray = new Il2CppReferenceArray<Il2CppSystem.Object>(5);
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
testRefArray[i] = "hi " + i;
|
||||
}
|
||||
|
||||
//// test loading a tex from file
|
||||
//var dataToLoad = System.IO.File.ReadAllBytes(@"Mods\Explorer\Tex_Nemundis_Nebula.png");
|
||||
//ExplorerCore.Log($"Tex load success: {TestTexture.LoadImage(dataToLoad, false)}");
|
||||
|
||||
Reference in new issue
Block a user