Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

AssetPreview.GetAssetPreview for 2D project

Discussion in 'Editor & General Support' started by DanielThomas, Nov 26, 2021.

  1. DanielThomas

    DanielThomas

    Joined:
    Mar 30, 2013
    Posts:
    106
    Short question: Is there a way to make AssetPreview.GetAssetPreview use a 2D project behavior when NOT having a spriterenderer (but rather a mesh) on the prefab? The preview window does, but not the actual preview image itself, it uses the 3D orientation.

    I've seen assets that allow you to create custom thumbnails but feel a bit bloated just to have the previews respect the 2D orientation.
     
  2. DanielThomas

    DanielThomas

    Joined:
    Mar 30, 2013
    Posts:
    106
    For future reference:
    My mistake, it was giving the correct previews adjusting to the project orientation, but one needed to regenerate them though (re import/clear library).