Unity导包升级常见报错(未更新完)
常见的Unity导包升级后错误:
- Ambiguous reference 'preview': CameraMotionBlurEditor.preview, UnityEditor.Editor.preview.
- 需要把var preview : SerializedProperty;
- 改为 var preview_ : SerializedProperty;
- Assets/Scripts/Common/Editor/InspectorSearch.cs(270,49): error CS0117: `UnityEditor.EditorUtility' does not contain a definition for `GetAssetPreview'
- var Texture = UnityEditor.EditorUtility.GetAssetPreview(g);
- var Texture = UnityEditor.AssetPreview.GetAssetPreview(g);