mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-22 16:50:18 +00:00
Add new pack rule
增加一个新的打包规则:收集器目录下顶级文件夹收集器
This commit is contained in:
@@ -582,19 +582,5 @@ namespace YooAsset.Editor
|
||||
return content.Substring(startIndex + key.Length);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 玩家偏好
|
||||
// 枚举
|
||||
public static void PlayerSetEnum<T>(string key, T value)
|
||||
{
|
||||
string enumName = value.ToString();
|
||||
EditorPrefs.SetString(key, enumName);
|
||||
}
|
||||
public static T PlayerGetEnum<T>(string key, T defaultValue)
|
||||
{
|
||||
string enumName = EditorPrefs.GetString(key, defaultValue.ToString());
|
||||
return StringUtility.NameToEnum<T>(enumName);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user