Fydar / AssetIcons

The public issue tracker and documentation for AssetIcons
https://fydar.dev/portfolio/asseticons
7 stars 0 forks source link

Exception being thrown rendering a GameObject inside an imported Prefab #34

Open Fydar opened 4 years ago

Fydar commented 4 years ago

I've noticed a few exceptions being thrown when I select certain objects in the object-selector in the preferences menu.

InvalidOperationException: Destroying a GameObject inside a Prefab instance is not allowed.
UnityEngine.Object.DestroyImmediate (UnityEngine.Object obj)
AssetIcons.Editors.AssetIconRenderer.RenderModel (UnityEngine.GameObject model, AssetIcons.Editors.CameraSetup style, System.Int32 width, System.Int32 height) (at Assets/AssetIcons/Editor/Scripts/AssetIconRenderer.cs:261)
AssetIcons.Editors.RenderCache.GetTexture (AssetIcons.Editors.CameraSetup cameraSetup, UnityEngine.GameObject target) (at Assets/AssetIcons/Editor/Scripts/RenderCache.cs:54)