Art_SubModule/Art_Scripts/ArtItemData.cs
2026-01-24 17:39:11 +08:00

53 lines
1.2 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using UnityEngine;
using Spine.Unity;
namespace ArtResource
{
/// <summary>
/// 美术资源项数据结构
/// </summary>
[System.Serializable]
public class ArtItemData
{
/// <summary>
/// 资源ID唯一标识
/// </summary>
public int Id;
/// <summary>
/// 资源名称(唯一,用于查询)
/// </summary>
public string Name;
/// <summary>
/// 资源描述
/// </summary>
public string Desc;
/// <summary>
/// 图片资源引用Editor模式使用
/// </summary>
public Sprite Sprite;
/// <summary>
/// 图片资源路径Runtime模式使用由Editor工具自动填充
/// </summary>
public string SpritePath;
/// <summary>
/// Spine骨骼资源引用Editor模式使用
/// </summary>
public SkeletonDataAsset SpineAsset;
/// <summary>
/// Spine资源路径Runtime模式使用由Editor工具自动填充
/// </summary>
public string SpineAssetPath;
/// <summary>
/// Spine动画名称
/// </summary>
public string SpineAnimName;
}
}