# winS.UnityEditor.ResourceManagement自述

winS.UnityEditor.ResourceManagement提供资源管理、索引及Addresss重建

简介:
编辑器窗口为ResourcesEditor, 该类提供一个惰性扫描按钮,当点击时
扫描当前编辑器下所有程序集,找到所有被EditorResourceManifest特性修饰的静态类
获取其下面所有类型为 IEditorResources 的 public static的字段，这些字段作为编辑器资源存在

示例代码:

[EditorResourceManifest]
public static class EditorResourceManager
{
    public static readonly EditorMusic music = EditorResources.Load<EditorMusic>();
    public static readonly EditorSound sound = EditorResources.Load<EditorSound>();
    public static readonly EditorBattle battle = EditorResources.Load<EditorBattle>();
}
