docs: sync editor viewport host docs

This commit is contained in:
2026-04-04 00:41:13 +08:00
parent 468dbfa7ac
commit 8abca3dec5
28 changed files with 2340 additions and 40 deletions

View File

@@ -0,0 +1,35 @@
# Application::GetProjectLibraryRoot
返回当前项目 `Library` 缓存目录路径。
```cpp
std::string GetProjectLibraryRoot() const;
```
## 当前行为
当前实现直接返回:
```cpp
::XCEngine::Resources::ResourceManager::Get().GetProjectLibraryRoot().CStr()
```
## 返回值语义
- 返回值是 `std::string` 按值拷贝,不是内部缓冲区引用
- 如果当前项目根尚未建立或资源系统尚未绑定有效缓存目录,通常会得到空字符串
## 当前用途
这个方法主要适合:
- editor 诊断面板显示当前 `Library` 目录
- 执行清库 / 全量重导前后做路径确认
- 测试或工具层输出当前缓存根位置
## 相关文档
- [Application](Application.md)
- [ClearProjectLibrary](ClearProjectLibrary.md)
- [ReimportAllProjectAssets](ReimportAllProjectAssets.md)
- [ResourceManager::GetProjectLibraryRoot](../../Core/Asset/ResourceManager/GetProjectLibraryRoot.md)