This repository has been archived on 2024-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
snakeinabox/Assets/NaughtyAttributes/Scripts/Core/DrawerAttributes/ShowAssetPreviewAttribute.cs
2020-07-09 11:41:01 -07:00

17 lines
462 B
C#

using System;
namespace NaughtyAttributes
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public class ShowAssetPreviewAttribute : DrawerAttribute
{
public int Width { get; private set; }
public int Height { get; private set; }
public ShowAssetPreviewAttribute(int width = 64, int height = 64)
{
this.Width = width;
this.Height = height;
}
}
}