Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

How to use AssetPreview.GetAssetPreview efficiently?

$
0
0
Lets assume I have 100 16k textures that I want to preview in my custom Editor GUI. Unity provides the AssetPreview.GetAssetPreview API to get such preview in an asynchronous way.

However, it requires as argument the actual object. Which means I need to load each 16k texture and pass the loaded object to GetAssetPreview to generate the preview. This is extremely inefficient, because loading a 16k texture...

How to use AssetPreview.GetAssetPreview efficiently?

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>