mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2026-10-10 20:23:13 +08:00
added InteractiveUnityStruct, thats the end of the interactive values for now
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -28,6 +28,8 @@ namespace UnityExplorer.Inspectors.Reflection
|
||||
else
|
||||
return typeof(InteractiveEnum);
|
||||
}
|
||||
else if (InteractiveUnityStruct.SupportsType(type))
|
||||
return typeof(InteractiveUnityStruct);
|
||||
else if (typeof(Transform).IsAssignableFrom(type))
|
||||
return typeof(InteractiveValue);
|
||||
else if (ReflectionHelpers.IsDictionary(type))
|
||||
@@ -56,7 +58,7 @@ namespace UnityExplorer.Inspectors.Reflection
|
||||
|
||||
public CacheObjectBase Owner;
|
||||
|
||||
public object Value { get; set; }
|
||||
public object Value;
|
||||
public readonly Type FallbackType;
|
||||
|
||||
public virtual bool HasSubContent => false;
|
||||
|
||||
+6
-6
@@ -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)}");
|
||||
|
||||
@@ -331,6 +331,7 @@
|
||||
<Compile Include="Inspectors\Reflection\InteractiveValue\InteractiveFlags.cs" />
|
||||
<Compile Include="Inspectors\Reflection\InteractiveValue\InteractiveNumber.cs" />
|
||||
<Compile Include="Inspectors\Reflection\InteractiveValue\InteractiveString.cs" />
|
||||
<Compile Include="Inspectors\Reflection\InteractiveValue\InteractiveUnityStruct.cs" />
|
||||
<Compile Include="UI\ForceUnlockCursor.cs" />
|
||||
<Compile Include="Input\IHandleInput.cs" />
|
||||
<Compile Include="Tests\Tests.cs" />
|
||||
|
||||
Reference in New Issue
Block a user