Files
sbox-public/engine/Sandbox.Tools/Assets/ThumbnailRendererAttribute.cs
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

22 lines
574 B
C#

using System;
namespace Editor;
public partial class Asset
{
/// <summary>
/// Should target a static method like
/// `public static Pixmap RenderThumbnail( Asset thumbnail )`
/// where the method returns a thumbnail for that asset type.
/// This kind of sucks I don't like it.
/// </summary>
[AttributeUsage( AttributeTargets.Method, AllowMultiple = false )]
public class ThumbnailRendererAttribute : System.Attribute
{
/// <summary>
/// The priority of this callback. Higher gets called first.
/// </summary>
public int Priority { get; set; }
}
}