<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>路径会变 on PlumePHP</title><link>https://plumephp.com/tags/%E8%B7%AF%E5%BE%84%E4%BC%9A%E5%8F%98/</link><description>Recent content in 路径会变 on PlumePHP</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Sat, 24 Jan 2026 11:30:00 +0800</lastBuildDate><atom:link href="https://plumephp.com/tags/%E8%B7%AF%E5%BE%84%E4%BC%9A%E5%8F%98/index.xml" rel="self" type="application/rss+xml"/><item><title>Godot 资源唯一 ID：路径会变，配置引用不能跟着断</title><link>https://plumephp.com/godot-resource-unique-id-reference-2026/</link><pubDate>Sat, 24 Jan 2026 11:30:00 +0800</pubDate><guid>https://plumephp.com/godot-resource-unique-id-reference-2026/</guid><description>&lt;h2 id="路径引用很方便也很脆弱"&gt;路径引用很方便，也很脆弱&lt;/h2&gt;
&lt;p&gt;Godot 场景和 Resource 天然使用路径引用。&lt;code&gt;res://resources/items/potion.tres&lt;/code&gt; 很直观，编辑器移动文件时也能更新一部分引用。但游戏业务数据里，如果所有道具、技能、任务都用路径当 ID，后期会遇到麻烦：文件改名导致存档找不到，配置表引用路径太长，热更新包路径变化，内容人员复制资源忘记改引用。&lt;/p&gt;</description></item></channel></rss>