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.

AssetPreview from Cinemachine components

Discussion in 'Cinemachine' started by mishakozlov74, Feb 6, 2022.

  1. mishakozlov74

    mishakozlov74

    Joined:
    Aug 8, 2018
    Posts:
    123
    Hi, I'm trying to use AssetPreview to show Cinemachine icon in custom editor, but it doesn't work.

    Code (CSharp):
    1. AssetPreview.GetMiniTypeThumbnail(typeof(CinemachineVirtualCamera))
    How does it work here, for example? How do I get this icon?
    upload_2022-2-6_3-41-55.png

    Thanks!
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    6,518
    The CM icon image is shipped with the CM package. You would have to locate the file and reference it directly.
     
    mishakozlov74 likes this.