14. Resource hot update tool configuration-Resource

GameFramework resource tool configuration instructions

Before using resource tools to edit and package resources, you must first configure them.

Specify configuration file path

    //  通过特性指定配置文件路径
    //  把这个类拷贝到工程中,修改下后面的配置存放路径即可
    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")

Guess you like

Origin blog.csdn.net/qmladm/article/details/129980700