Unity导包升级常见报错(未更新完)

常见的Unity导包升级后错误:

  • Ambiguous reference 'preview': CameraMotionBlurEditor.preview, UnityEditor.Editor.preview.
  1. 需要把var preview : SerializedProperty; 
  2. 改为 var preview_ : SerializedProperty;
  • Assets/Scripts/Common/Editor/InspectorSearch.cs(270,49): error CS0117: `UnityEditor.EditorUtility' does not contain a definition for `GetAssetPreview'
  1. var Texture = UnityEditor.EditorUtility.GetAssetPreview(g);
  2. var Texture = UnityEditor.AssetPreview.GetAssetPreview(g);
posted @ 2018-03-24 14:43  20世纪少年  阅读(1076)  评论(0编辑  收藏  举报