Search Unity

AssetPreview from Cinemachine components

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

  1. mishakozlov74

    mishakozlov74

    Joined:
    Aug 8, 2018
    Posts:
    143
    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:
    7,728
    The CM icon image is shipped with the CM package. You would have to locate the file and reference it directly.
     
    mishakozlov74 likes this.