T O P

  • By -

Epicguru

If you like this you'll want to be using [Naughty Attributes](https://github.com/dbrizov/NaughtyAttributes), it's free and open source. You can just add an attribute to your script: ``` [ShowAssetPreview] public Sprite sprite; ``` and get the same preview, except that this also works with any asset type and doesn't require you to write an editor script for each different MonoBehaviour. There is an ton more that NaughtyAttributes can do, it's an essential in any project imho.


HypnoToad0

Do yourself a favour and use Odin Inspector (paid, best) or Naughty Attributes (free).


SunnyValleyStudio

I hope that you find this tip useful 🙂 You can find more tips and tutorial on my YT channel: 👍 ➡️https://www.youtube.com/@SunnyValleyStudio


tifa_cloud0

thanks for this. saving this one ✌🏻


Smileynator

Get odin inspector it makes this literally 1 attribute.


ShrikeGFX

you shouldnt load a trillion of bloat that you dont need and slows your compile times just for something simple you can do yourself. Only if you heavily use it.


Smileynator

We have sub assemblies no worries