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")