-
Notifications
You must be signed in to change notification settings - Fork 24
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
In my game project, I have to define a static class store all resource、scene file path,such as:
namespace M3k3;
public static class SceneConstants
{
#region 场景路径
/// <summary>
/// 一统天下:选择主公
/// </summary>
public const string SceneSelectMaster = "uid://cbklo627i8sph";
/// <summary>
/// 开始菜单
/// </summary>
public const string SceneStartMenu = "uid://x86iw2o7sd5f";
/// <summary>
/// 场景中的主公
/// </summary>
public const string SceneMaster = "uid://cw231wbvl5wcu";
/// <summary>
/// 关卡资源目录
/// </summary>
public const string StageResourcePath = "res://resources/stages/";
#endregion
}It is very convineient if there is a attribute generate all of the file or folder path. There is a similar repo: https://github.com/OlliO6/SafeStrings-GodotCS?tab=readme-ov-file#-resource-paths
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request