// Copyright (c) 2012-2024 Wojciech Figat. All rights reserved.
using System;
using FlaxEngine;
namespace FlaxEditor.Content
{
///
/// Content item that contains data.
///
///
public sealed class SceneItem : JsonAssetItem
{
///
/// Initializes a new instance of the class.
///
/// The asset path.
/// The asset identifier.
public SceneItem(string path, Guid id)
: base(path, id, Scene.EditorPickerTypename)
{
}
///
public override ContentItemType ItemType => ContentItemType.Scene;
///
public override ContentItemSearchFilter SearchFilter => ContentItemSearchFilter.Scene;
///
public override string TypeDescription => "Scene";
///
public override SpriteHandle DefaultThumbnail => Editor.Instance.Icons.Scene128;
///
public override bool IsOfType(Type type)
{
return type.IsAssignableFrom(typeof(SceneAsset));
}
}
}