14.资源热更新工具配置-Resource

GameFramework资源工具配置说明

在使用资源工具编辑、打包资源前,要先进行配置

指定配置文件路径

    //  通过特性指定配置文件路径
    //  把这个类拷贝到工程中,修改下后面的配置存放路径即可
    public static class GameFrameworkConfigs
    {
   
    
    
        //  不设置默认为 "GameFramework/Configs/BuildSettings.xml"
        [BuildSettingsConfigPath]
        public static string BuildSettingsConfig = Utility.Path.GetRegularPath(Path.Combine(Application.dataPath, "GameMain/Configs/BuildSettings.xml"));

        //  不设置默认为 "GameFramework/Configs/ResourceCollection.xml"
        [ResourceCollectionConfigPath]
        public static string ResourceCollectionConfig = Utility.Path.GetRegularPath(Path.Combine(Application.dataPath, "GameMain/Configs/ResourceCollection.xml"));

        //  不设置默认为 "GameFramework/Configs/ResourceEditor.xml"
        [ResourceEditorConfigPath]
        public static string ResourceEditorConfig = Utility.Path.GetRegularPath(Path.Combine(Application.dataPath, "GameMain/Configs/ResourceEditor.xml")

猜你喜欢

转载自blog.csdn.net/qmladm/article/details/129980700