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

588 B
Raw Blame History

ResourceDependencyGraph::GetDependencies

Containers::Array<ResourceGUID> GetDependencies(ResourceGUID guid) const

获取指定资源直接依赖的所有资源列表。不包含传递依赖。

参数:

  • guid - 资源全局唯一标识符

返回: 直接依赖的 GUID 数组

复杂度: O(k)k 为直接依赖数量

示例:

auto deps = graph.GetDependencies(materialGuid);
// 返回 Material 直接依赖的资源Texture、Shader 等)

相关文档