Description
Steps to reproduce:
- create a sprite atlas and override the compression to use DXT5|BC3 mode;
- build the project;
- access the last build report, open the SourceAssets tab, notice the crash (see stack trace below).
In my project, the asset that causes the crash is:
buildTimeAssetPath: 'Built-in Texture2D: sactx-0-256x128-DXT5|BC3-ui-sprite-atlas-fff07956'
Stack trace:
ArgumentException: Illegal characters in path.
System.IO.Path.GetFileName (System.String path) (at <695d1cc93cca45069c528c15c9fdd749>:0)
Unity.BuildReportInspector.BuildReportInspector.ShowAssets (System.Collections.Generic.IEnumerable`1[T] assets, System.Single& vPos, System.String fileFilter, System.String typeFilter) (at E:/Temp/unity/BuildReportInspector-master/com.unity.build-report-inspector/Editor/BuildReportInspector.cs:470)
Unity.BuildReportInspector.BuildReportInspector.DisplayAssetsView (System.Single vPos) (at E:/Temp/unity/BuildReportInspector-master/com.unity.build-report-inspector/Editor/BuildReportInspector.cs:606)
Unity.BuildReportInspector.BuildReportInspector.OnAssetsGUI () (at E:/Temp/unity/BuildReportInspector-master/com.unity.build-report-inspector/Editor/BuildReportInspector.cs:597)
Unity.BuildReportInspector.BuildReportInspector.OnInspectorGUI () (at E:/Temp/unity/BuildReportInspector-master/com.unity.build-report-inspector/Editor/BuildReportInspector.cs:213)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass59_0.b__0 () (at :0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)