Skip to content

Commit 3ad5f77

Browse files
author
Unity Technologies
committed
Unity 2019.3.0f1 C# reference source code
1 parent 7d9da8a commit 3ad5f77

40 files changed

+842
-377
lines changed

Editor/Mono/BuildPipeline/AssemblyStripper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ private static string UnityLinkerPath
4646
{
4747
get
4848
{
49-
return Path.Combine(IL2CPPUtils.GetIl2CppFolder(), "build/UnityLinker.exe");
49+
return Path.Combine(IL2CPPUtils.GetIl2CppFolder(), "build/deploy/net471/UnityLinker.exe");
5050
}
5151
}
5252

Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,12 +521,12 @@ private void RunIl2CppWithArguments(List<string> arguments, Action<ProcessStartI
521521

522522
private string GetIl2CppExe()
523523
{
524-
return IL2CPPUtils.GetIl2CppFolder() + "/build/il2cpp.exe";
524+
return IL2CPPUtils.GetIl2CppFolder() + "/build/deploy/net471/il2cpp.exe";
525525
}
526526

527527
private string GetIl2CppCoreExe()
528528
{
529-
return IL2CPPUtils.GetIl2CppFolder() + "/build/il2cppcore/il2cppcore.dll";
529+
return IL2CPPUtils.GetIl2CppFolder() + "/build/deploy/il2cppcore/il2cppcore.dll";
530530
}
531531

532532
private bool ShouldUseIl2CppCore()

Editor/Mono/EditorGUI.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6068,10 +6068,7 @@ internal static Texture2D transparentCheckerTexture
60686068
private static Material GetPreviewMaterial(ref Material m, string shaderPath)
60696069
{
60706070
if (m == null)
6071-
{
60726071
m = new Material(EditorGUIUtility.LoadRequired(shaderPath) as Shader);
6073-
m.hideFlags = HideFlags.HideAndDontSave;
6074-
}
60756072
return m;
60766073
}
60776074

Editor/Mono/EditorGUIUtility.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ internal static Material GUITextureBlit2SRGBMaterial
4949
{
5050
Shader shader = LoadRequired("SceneView/GUITextureBlit2SRGB.shader") as Shader;
5151
s_GUITextureBlit2SRGBMaterial = new Material(shader);
52+
s_GUITextureBlit2SRGBMaterial.hideFlags |= HideFlags.DontSaveInEditor;
5253
}
5354
s_GUITextureBlit2SRGBMaterial.SetFloat("_ManualTex2SRGB", QualitySettings.activeColorSpace == ColorSpace.Linear ? 1.0f : 0.0f);
5455
return s_GUITextureBlit2SRGBMaterial;
@@ -64,6 +65,7 @@ internal static Material GUITextureBlitSceneGUIMaterial
6465
{
6566
Shader shader = LoadRequired("SceneView/GUITextureBlitSceneGUI.shader") as Shader;
6667
s_GUITextureBlitSceneGUI = new Material(shader);
68+
s_GUITextureBlitSceneGUI.hideFlags |= HideFlags.DontSaveInEditor;
6769
}
6870
return s_GUITextureBlitSceneGUI;
6971
}
@@ -952,7 +954,10 @@ private static UnityObject Load(string filename, Type type)
952954

953955
asset = bundle.LoadAsset(filename, type);
954956
if (asset != null)
957+
{
958+
asset.hideFlags |= HideFlags.HideAndDontSave;
955959
return asset;
960+
}
956961

957962
return AssetDatabase.LoadAssetAtPath(filename, type);
958963
}

0 commit comments

Comments
 (0)