mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-07-15 07:56:41 +08:00
added InteractiveUnityStruct, thats the end of the interactive values for now
This commit is contained in:
@ -24,6 +24,12 @@ namespace UnityExplorer.Tests
|
||||
|
||||
public class TestClass
|
||||
{
|
||||
public Vector2 AATestVector2 = new Vector2(1, 2);
|
||||
public Vector3 AATestVector3 = new Vector3(1, 2, 3);
|
||||
public Vector4 AATestVector4 = new Vector4(1, 2, 3, 4);
|
||||
public Rect AATestRect = new Rect(1, 2, 3, 4);
|
||||
public Color AATestColor = new Color(0.1f, 0.2f, 0.3f, 0.4f);
|
||||
|
||||
public bool ATestBoolMethod() => false;
|
||||
|
||||
public bool this[int index]
|
||||
@ -139,12 +145,6 @@ namespace UnityExplorer.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\UnityExplorer\Tex_Nemundis_Nebula.png");
|
||||
//ExplorerCore.Log($"Tex load success: {TestTexture.LoadImage(dataToLoad, false)}");
|
||||
|
Reference in New Issue
Block a user