Vixen
02b45cc4
csharp
public record class AssetIcon

What a kind of file looks like in the Project panel.

Read the guide page for this →

Remarks

⚠ Two ways to name a file kind, because an asset has one before it has the other. The importer tag is what the sidecar records and what the browser's type filter offers, so it is the better key — but a file the database has not indexed has no tag at all, and an asset type a plugin contributed through NewAssetKind may have no importer in the first place. The extension is what is left, and it is what the Create ▸ entry already names.

The tag is tried first: two plugins whose asset types share an extension are told apart by which importer claimed the file, and nothing else could tell them apart at all.

Fields and properties (3)

  • public string Kind

    An importer tag — TextureImporter — or an extension, with its dot.

  • public IconArt Art

    Its picture.

  • public int Order

    Which of two declarations for one kind wins.

Methods (1)

  • public AssetIcon(string Kind, IconArt Art, int Order = 0)

    What a kind of file looks like in the Project panel.

Used by (6)

  • EditorApplicationVixen.Editor.App
  • EditorArtVixen.Editor.Ui
  • IconContributionTestsVixen.Editor.App.Tests
  • ProjectBrowserVixen.Editor.App
  • StandardIconsVixen.Editor.App
  • TerrainModuleVixen.Editor.Terrain