Skip to content

Commit

Permalink
fix: Unity test
Browse files Browse the repository at this point in the history
  • Loading branch information
Zonciu Liang committed Dec 13, 2020
1 parent a054583 commit 2e89cd2
Show file tree
Hide file tree
Showing 18 changed files with 417 additions and 274 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Current ported to commit:
[![加入QQ群](https://img.shields.io/badge/QQ%20Group-加入QQ群-orange)](https://jq.qq.com/?_wv=1027&k=b2zyTWnZ)

# Unity test
Run link.bat to link source code to Unity project
Run `CopyToUnityTestbed.bat` to copy source code and test code to Unity project

# Testbed
Driven by [OpenTk](https://github.com/opentk/opentk) + [ImGui.NET](https://github.com/mellinoe/imgui.net)
Expand Down
3 changes: 0 additions & 3 deletions test/UnityTest/Assembly-CSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,6 @@
<Compile Include="Assets\FpsCounter.cs" />
<Compile Include="Assets\GUIController.cs" />
<Compile Include="Assets\Game.cs" />
<Compile Include="Assets\Inspection\BoundBase.cs" />
<Compile Include="Assets\Inspection\BoundCircle.cs" />
<Compile Include="Assets\Inspection\BoundRect.cs" />
<Compile Include="Assets\Inspection\MouseInspector.cs" />
<Compile Include="Assets\Inspection\UnityDrawer.cs" />
<Compile Include="Assets\Inspection\Utils.cs" />
Expand Down
5 changes: 5 additions & 0 deletions test/UnityTest/Assets/Game.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@ public void Update()
CheckMouseUp();
}

private void OnPreRender()
{
Test.Render();
}

private void OnEnable()
{
ImGuiUn.Layout += RenderUI;
Expand Down
46 changes: 0 additions & 46 deletions test/UnityTest/Assets/Inspection/BoundBase.cs

This file was deleted.

11 changes: 0 additions & 11 deletions test/UnityTest/Assets/Inspection/BoundBase.cs.meta

This file was deleted.

55 changes: 0 additions & 55 deletions test/UnityTest/Assets/Inspection/BoundCircle.cs

This file was deleted.

11 changes: 0 additions & 11 deletions test/UnityTest/Assets/Inspection/BoundCircle.cs.meta

This file was deleted.

65 changes: 0 additions & 65 deletions test/UnityTest/Assets/Inspection/BoundRect.cs

This file was deleted.

11 changes: 0 additions & 11 deletions test/UnityTest/Assets/Inspection/BoundRect.cs.meta

This file was deleted.

Binary file modified test/UnityTest/Assets/System.Buffers.dll
Binary file not shown.
1 change: 1 addition & 0 deletions test/UnityTest/Assets/System.Buffers.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified test/UnityTest/Assets/System.Memory.dll
Binary file not shown.
1 change: 1 addition & 0 deletions test/UnityTest/Assets/System.Memory.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

This file was deleted.

44 changes: 44 additions & 0 deletions test/UnityTest/Packages/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"dependencies": {
"com.realgames.dear-imgui": "https://github.com/realgamessoftware/dear-imgui-unity.git",
"com.unity.collab-proxy": "1.2.16",
"com.unity.ide.rider": "1.1.4",
"com.unity.ide.vscode": "1.2.1",
"com.unity.inputsystem": "1.0.1",
"com.unity.test-framework": "1.1.14",
"com.unity.textmeshpro": "2.0.1",
"com.unity.timeline": "1.2.15",
"com.unity.ugui": "1.0.0",
"com.unity.modules.ai": "1.0.0",
"com.unity.modules.androidjni": "1.0.0",
"com.unity.modules.animation": "1.0.0",
"com.unity.modules.assetbundle": "1.0.0",
"com.unity.modules.audio": "1.0.0",
"com.unity.modules.cloth": "1.0.0",
"com.unity.modules.director": "1.0.0",
"com.unity.modules.imageconversion": "1.0.0",
"com.unity.modules.imgui": "1.0.0",
"com.unity.modules.jsonserialize": "1.0.0",
"com.unity.modules.particlesystem": "1.0.0",
"com.unity.modules.physics": "1.0.0",
"com.unity.modules.physics2d": "1.0.0",
"com.unity.modules.screencapture": "1.0.0",
"com.unity.modules.terrain": "1.0.0",
"com.unity.modules.terrainphysics": "1.0.0",
"com.unity.modules.tilemap": "1.0.0",
"com.unity.modules.ui": "1.0.0",
"com.unity.modules.uielements": "1.0.0",
"com.unity.modules.umbra": "1.0.0",
"com.unity.modules.unityanalytics": "1.0.0",
"com.unity.modules.unitywebrequest": "1.0.0",
"com.unity.modules.unitywebrequestassetbundle": "1.0.0",
"com.unity.modules.unitywebrequestaudio": "1.0.0",
"com.unity.modules.unitywebrequesttexture": "1.0.0",
"com.unity.modules.unitywebrequestwww": "1.0.0",
"com.unity.modules.vehicles": "1.0.0",
"com.unity.modules.video": "1.0.0",
"com.unity.modules.vr": "1.0.0",
"com.unity.modules.wind": "1.0.0",
"com.unity.modules.xr": "1.0.0"
}
}
Loading

0 comments on commit 2e89cd2

Please sign in to comment.