Files
XCSDD/docs/api/resources/dependencygraph/getdependencies.md
ssdfasd 58a83f445a fix: improve doc link navigation and tree display
- Fix link resolution with proper relative/absolute path handling
- Improve link styling with underline decoration
- Hide leaf nodes from tree, only show directories
- Fix log file path for packaged app
2026-03-19 12:44:08 +08:00

26 lines
588 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ResourceDependencyGraph::GetDependencies
```cpp
Containers::Array<ResourceGUID> GetDependencies(ResourceGUID guid) const
```
获取指定资源直接依赖的所有资源列表。不包含传递依赖。
**参数:**
- `guid` - 资源全局唯一标识符
**返回:** 直接依赖的 GUID 数组
**复杂度:** O(k)k 为直接依赖数量
**示例:**
```cpp
auto deps = graph.GetDependencies(materialGuid);
// 返回 Material 直接依赖的资源Texture、Shader 等)
```
## 相关文档
- [ResourceDependencyGraph 总览](dependencygraph.md) - 返回类总览