You're breathtaking!
This commit is contained in:
32
Source/Editor/Content/Items/ShaderSourceItem.cs
Normal file
32
Source/Editor/Content/Items/ShaderSourceItem.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
// Copyright (c) 2012-2020 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user