在添加了资源后报错,不影响运行,但是build的时候会失败。
NullReferenceException: Object reference not set to an instance of an object
UnityEngine.InternalStaticBatchingUtility.CombineGameObjects (UnityEngine.GameObject[] gos, UnityEngine.GameObject staticBatchRoot, System.Boolean isEditorPostprocessScene, UnityEngine.InternalStaticBatchingUtility+StaticBatcherGOSorter sorter) (at <6f7cbd2409704976852490551564c873>:0)
UnityEngine.InternalStaticBatchingUtility.Combine (UnityEngine.GameObject staticBatchRoot, System.Boolean combineOnlyStatic, System.Boolean isEditorPostprocessScene, UnityEngine.InternalStaticBatchingUtility+StaticBatcherGOSorter sorter) (at <6f7cbd2409704976852490551564c873>:0)
UnityEditor.UnityBuildPostprocessor.OnProcessScene (UnityEngine.SceneManagement.Scene scene, UnityEditor.Build.Reporting.BuildReport report) (at :0)
UnityEditor.Build.BuildPipelineInterfaces+<>c__DisplayClass17_0.b__1 (UnityEditor.Build.IProcessSceneWithReport spp) (at :0)
UnityEditor.Build.BuildPipelineInterfaces.InvokeCallbackInterfacesPair[T1,T2] (System.Collections.Generic.List
1[T] oneInterfaces, System.Action
1[T] invocationOne, System.Collections.Generic.List1[T] twoInterfaces, System.Action
1[T] invocationTwo, System.Boolean exitOnFailure) (at :0)UnityEditor.Build.BuildPipelineInterfaces:OnSceneProcess(Scene, BuildReport)
在build的时候如下报错