mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-01-07 10:03:38 +08:00
Fix a preprocessor directive
This commit is contained in:
parent
cfa4b12039
commit
0025c83930
@ -10,8 +10,7 @@ namespace UnityExplorer.Helpers
|
|||||||
{
|
{
|
||||||
public static class Texture2DHelpers
|
public static class Texture2DHelpers
|
||||||
{
|
{
|
||||||
#if CPP // If Mono
|
#if MONO
|
||||||
#else
|
|
||||||
private static bool isNewEncodeMethod = false;
|
private static bool isNewEncodeMethod = false;
|
||||||
private static MethodInfo EncodeToPNGMethod => m_encodeToPNGMethod ?? GetEncodeToPNGMethod();
|
private static MethodInfo EncodeToPNGMethod => m_encodeToPNGMethod ?? GetEncodeToPNGMethod();
|
||||||
private static MethodInfo m_encodeToPNGMethod;
|
private static MethodInfo m_encodeToPNGMethod;
|
||||||
@ -52,7 +51,7 @@ namespace UnityExplorer.Helpers
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Texture2D Copy(Texture2D orig, Rect rect) //, bool isDTXnmNormal = false)
|
public static Texture2D Copy(Texture2D orig, Rect rect)
|
||||||
{
|
{
|
||||||
Color[] pixels;
|
Color[] pixels;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user