NaughtyAttributes icon indicating copy to clipboard operation
NaughtyAttributes copied to clipboard

[Request] show preview of prefab with [ShowAssetPreview] when referencing a component

Open sleepandpancakes opened this issue 7 years ago • 2 comments

Instead of referencing GameObject when assigning prefabs, I tend to reference a component on the prefab. It would be great if the [ShowAssetPreview] attribute could be extended so that if used on a MonoBehaviour reference, it previews the asset that it is attached to.

sleepandpancakes avatar Oct 31 '18 16:10 sleepandpancakes

I second this, strongly.

yigitkahraman avatar Oct 31 '19 11:10 yigitkahraman

Here is one tool than can be used together with NaughtyAttributes:

[BelowImage(maxWidth: 50)] public SpriteRenderer prefab;

image

TylerTemp avatar Feb 29 '24 08:02 TylerTemp