Files
FlaxEngine/Source/Editor/Content/Items/ShaderSourceItem.cs
2021-01-02 14:28:49 +01:00

33 lines
987 B
C#

// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
using FlaxEngine;
namespace FlaxEditor.Content
{
/// <summary>
/// Content item that contains shader source code.
/// </summary>
/// <seealso cref="FlaxEditor.Content.ContentItem" />
public class ShaderSourceItem : ContentItem
{
/// <summary>
/// Initializes a new instance of the <see cref="ShaderSourceItem"/> class.
/// </summary>
/// <param name="path">The path to the item.</param>
public ShaderSourceItem(string path)
: base(path)
{
ShowFileExtension = true;
}
/// <inheritdoc />
public override ContentItemType ItemType => ContentItemType.Asset;
/// <inheritdoc />
public override ContentItemSearchFilter SearchFilter => ContentItemSearchFilter.Shader;
/// <inheritdoc />
public override SpriteHandle DefaultThumbnail => Editor.Instance.Icons.Document64;
}
}