Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 463d916

Browse files
authored
Fixing #351
Applying shiena's code fixed this issue.
1 parent 2f38e6a commit 463d916

File tree

1 file changed

+1
-1
lines changed
  • src/UnityExtension/Assets/Editor/GitHub.Unity/Misc

1 file changed

+1
-1
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/Misc/Utility.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ static class StreamExtensions
3232

3333
static StreamExtensions()
3434
{
35-
var t = typeof(Texture2D).Assembly.GetType("UnityEngine.ImageConversion", false, false);
35+
var t = Assembly.Load("UnityEngine.dll").GetType("UnityEngine.ImageConversion", false, false);
3636
if (t != null)
3737
{
3838
// looking for ImageConversion.LoadImage(this Texture2D tex, byte[] data)

0 commit comments

Comments
 (0)